Choosing which result to use

2 posts / 0 new
Last post
BWD_Admin
Choosing which result to use

I just searched for Springfield, OH and got 11 results.

https://www.mapquestapi.com/geocoding/v1/address?key=KEY&location=Spring...

There is only one city in Ohio named Springfield. But I assume the other results are  streets or neighborhoods? How can we tell from the JSON data which is the actual city?


MQBrianCoakley
Use the qualityCode to
Use the qualityCode to determine how accurate the result is. There are Springfield Townships and other named places in the Admin Area 5 category. This is not unexpected. The results are ordered by a popular category so the higher order would mean more likely to be a proper or larger city.