Correct address format to get the most accurate results from google GeoCoding API

前端 未结 6 836
南笙
南笙 2020-12-24 02:12

Is there any standard format to supply the address string to Google GeoCoding API to get the most accurate results on map.

For Eg. following query not giving correct

6条回答
  •  轮回少年
    2020-12-24 02:43

    I believe the suggested format is:

    House Number, Street Direction, Street Name, Street Suffix, City, State, Zip, Country
    

    The results get less specific the less information you can supply, obviously.

    In your sample, the geocoder is searching for a street named 'bloom', of which there are similar matches in OH instead of CT. Removing 'bloom' from the query and then searching returns Bloomfield, CT.

提交回复
热议问题