Google geocode API returns location of motorway rather than postcode area supplied

六眼飞鱼酱① 提交于 2019-12-13 05:17:06

问题


I get the same result if I use the URL or javascript APIs.

If I pass (as an address) the location "M5" for geocoding, rather than returning the location of the M5 Postal Area (Salford, Manchester) the location returned is the centre of the M5 Motorway.

Interestingly in the old google maps (http://maps.google.co.uk) I get the same behaviour but the new google maps (same URL) returns the correct area.

Is there another way I can define the location (rather than 'address') that will be more accurate? The only other requirement is that the user may enter a town / city / county name rather than a post code so the solution needs to be flexible enough to handle this.

来源:https://stackoverflow.com/questions/23480601/google-geocode-api-returns-location-of-motorway-rather-than-postcode-area-suppli

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!