I am trying to get Lat / Lon for a list of locations from an address. It works for most addresses, but some of them fail and return zero results.
Take this address as an example: 1045 Mono Way, Sonora, CA 95370
As you can see, this is a valid address on Google Maps - no problem.
When checking Geocoder Api, I encode the address using urlencode(). This is the encoded address:1045%20Mono%20Way%2C%20Sonora%2C%20CA%2095370
urlencode()
1045%20Mono%20Way%2C%20Sonora%2C%20CA%2095370
This is the link I am referring to: https://maps.googleapis.com/maps/api/geocode/xml?address=1045%20Mono%20Way%2C%20Sonora%2C%20CA% 2095370 & sensor = false
As you can see, zero results.
Now, if you change the first part of the address (1045) to any other number (for example, 1044), you will get real results.
I'm lost.
Need help.
You are welcome;)
By the way, I use this answer to get lat / lon from the API: Google Maps - address translation to latitude and longitude - PHP backend?
, . , , , . , (1045, 1047, 1049), (1044, 1046, 1048) , . , , , .
"" API, , , Maps. API-, "ZERO_RESULTS", .
, API, !
Source: https://habr.com/ru/post/1526665/More articles:Using an environment variable to run an external program - environment-variablesCamelCase vs snake_case vs dash-s in Ember.js application - ember.jsNfcAdapter.getDefaultAdapter returns null when an Android application is launched with the intent BOOT_COMPLETED - androidactive administrator sorts has_many column count - sorting"make install" - change output assignment for all builds - gccCreating a new difference in the project between the application name and the module name - android-studioFree scales for fill color with geom_tile in ggplot2 - rHow to get properties from a dynamic object (anonymous type) using reflection? - genericsCache requests using the Parse Javascript SDK - javascriptElasticBeanstalk and Rails - application deployment, but only 404 not found nginx / 1.4.3 - ruby ββ| fooobar.comAll Articles