Can some please tell me why this call to Google geocoding API returns no results. https://maps.googleapis.com/maps/api/geocode/json?address=1226%20Freeport%20Road+Defuniak%20Springs+FL+32433
Asked
Active
Viewed 2,244 times
0
-
Because that address isn't in geocoder's database. Why do you think it should be in the geocoder's database? – geocodezip Nov 17 '16 at 19:22
-
it should be because it's a valid address like any. It's one of the event sites for a project I am working on and I cannot geocode it though it shows up fine when searched on google maps. Thanks! – NShaik Nov 17 '16 at 19:44
-
@geocodezip Well it also makes me ask...since I can geocode my home address...why IS IT IN the geocoder's database? – NShaik Nov 17 '16 at 20:05
-
The only locations that list that address in the places database (so I assume on google maps) are stores at a shopping mall. You might need to use the "send feedback:report a data problem" link on google maps to get it in the geocoding database. – geocodezip Nov 17 '16 at 20:53
-
https://www.google.com/maps/search/1226+Freeport+Road+Defuniak+Springs+FL+32433/@30.7047503,-86.1281498,17z – geocodezip Nov 17 '16 at 21:01
-
@geocodezip Thanks! for the feedback suggestion. I will do that. – NShaik Nov 18 '16 at 11:37
1 Answers
2
You can find this address using the Places API request:
Why you cannot find it with Geocoding API? If you check the response from Places API you will see the following:
"results":[
{
"formatted_address":"1226 Freeport Road, Defuniak Springs, FL 32433, United States",
"geometry":{
"location":{
"lat":30.7045583,"lng":-86.1251103
}
},
"icon":"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
"id":"bcb674fa738a9af907230e17fb25014a498d7987",
"name":"Subway",
"opening_hours":{
"open_now":true,
"weekday_text":[
]
},
"place_id":"ChIJn1aPjK3Rk4gRL0ZTnQtbwS0",
"price_level":1,
"reference":"CmRRAAAAvNQhXr-Zgrhc2HdI8hECvgzuLZQfTgP1MdA0oH-db5-8SPiXOLIsKYYMYUCTEQreUdP4JwV-EBZJhttf52dUFCOBzAHF7iOrgvtEnDpe_EcoBqg6z_bPo14X9_CW9ZafEhApON7yxIXlHbhjqdz7qe37GhTWK5ifCApitBrSehqI8bIG03Z2IQ",
"types":[
"restaurant","food","point_of_interest","establishment"
]
},....
Please note that this place has types "restaurant","food", ... So it represents a business. Geocoding API filters all businesses out and works only with features that have type street address.
You can create a street address yourself using Map Maker:
https://mapmaker.google.com/mapmaker
Hope it helps!

xomena
- 31,125
- 6
- 88
- 117