google maps - how to get the complete address(es) using a business name? -
i know google maps's json return includes "formatted_address" gives full readable address i've tested on couple of places no success, lat , lng coordinates aren't correct either. if manually search using maps.google.com correct know input specific enough. how can use api this? if input vague? can json return includes possible locations? (i.e. mcdonalds in nyc surely return many coordinates)
example: http://maps.googleapis.com/maps/api/geocode/json?address=time+square+nyc&sensor=false returns correct coodrinates , full address can use.
http://maps.googleapis.com/maps/api/geocode/json?address=amc+loews+boston&sensor=false not. of course if search "amc lowes boston" manually returns correct address on google maps.
i think you're looking google maps' places library.
Comments
Post a Comment