False results

13 posts / 0 new
Last post
VincentCasset
False results

Hi,

I'm looking for the Coordinates of 2000+ addresses.

Unfortunately I have a very high fail rate...more than half are completely wrong!

I tried one by one and with the batch possibility but it doesn't make a difference.

In my requests, I sent Post Code and Country (within Europe). What I've seen is if the postcode (for example in Germany) exists in the USA, I'll get coordinates in the USA.

On purpose, I'm not using the street and street number because I would have to adapt the format, which is different for each country.

I'm also not submiting any City names because of the special characters for each country (for example: ä,ö,é....).

Is there a way to "force" the country (I'm using ISO2... Germany=DE)?

Thank you!

Vincent

 


MQBrianCoakley
This would be best handled
This would be best handled using 5-box input where each address component is input separately. Set the country value specifically. Make sure you're using www.mapquestapi.com instead of open.mapquestapi.com.

VincentCasset
Thank you

Thank you

I'm using www.mapquestapi.com and not open.mapquestapi.com.

I'll give it a try!

 


VincentCasset
So I tried!

So I tried!

Before I had 80% of request with wrong data. With 5-Box I have around 45% of wrong data. still quite a lot!


MQBrianCoakley
Bummer. Can you post a few
Bummer. Can you post a few sample bad requests?

VincentCasset
For example:

For example:

http://www.mapquestapi.com/geocoding/v1/address?key=MY_KEY&location=7127...

I get -92.639039,32.532435. which is : W Florida Ave, Ruston, LA 71270 USA.

instead of : 8.93087806800003, 48.770925: Renningen in Germany.

You can see that the Postcode is very similar: 71272; 71270.


VincentCasset
http://www.mapquestapi.com

http://www.mapquestapi.com/geocoding/v1/address?key=MY_KEY&location=DE,7...

Sorry, I made a mistake... I sent Country,Postcode. Instead of Postcode,Country.


MQBrianCoakley
Here is how I used the 5-box

Here is how I used the 5-box address input and got the correct location for that postal code.

 

http://www.mapquestapi.com/geocoding/v1/address?key=KEY&country=DE&postalCode=71272


VincentCasset
I tried a few postalCodes and

I tried a few postalCodes and country. It seems to work... I'll run it over all my data. I'll let you know the results...Thank you for your help


VincentCasset
How to have multiple Country=...&postalCode=...?

I'll have to wait to run the test... I have a "free plan" and I've used up my 15000 request!

Would you know why it says I have to wait until November 25th to get a new full plan?

Anyway, how can you pass multiple country=...&postalCode=...? this country=...&postalCode=...||country=...&postalCode=...||.... doesn't work and I didn't find the topic in the documentation. Thank you!


MQBrianCoakley
Since you signed up for your

Since you signed up for your account on the 25th, your transaction count starts over again each month on the 25th.

 

Are you using a batch geocode?


VincentCasset
Batch...

Well, I do reverse geocode from mobile to enter current location in a database. (no Batch).

I retrieve coordinates to fill my customers' customers in the database (I did it with Batch, country,postcode with poor result.I tried different combinations of streets, cities, countries, postcodes...)now, 5-Box seems to work fine but I don't know how to use that with a batch; as in country...&postalCode=.... to keep the accuracy. I have loop for each individual address...

Finally, I also retrieve a Static Map to show where are the customers in a given area. There, I couldn't use my coordinates. I need 20 to 40 coordinates for 1 map, I get no returned map. If I take fewer, it works! is there a limit? So I used country,postcode but as we know the accuracy is not that good...

I need to get best accuracy for my 3 areas. Ideally, get once the coordinates in my database (occasionally update or new addresses) and use these coordinates to display the static map... In a way reduce the errors.

Thank you for your help!


MQBrianCoakley
I know it's not very well

I know it's not very well documented (if at all) but you need to use json or xml input for batch geocoding with 5-box input. Here is an example I put together for another user a while ago.

 

http://www.mapquestapi.com/geocoding/v1/batch?key=KEY&json={"locations":[{"postalCode":"87435","street":"Hildegardplatz 11","state":"","city":"Kempten","country":"DE"}]}&inFormat=json