Soheil Ghahremani
Soheil Ghahremani

Reputation: 1135

Maps API - Find Location Based On Latitude and Longitude on Return Zero Result

I want to find Location Based on Lat and Long Via Maps API But in some Points It Returns Zero Result . For example a point in Persian Gulf . in such case i want to find out this point belongs to Persian Gulf (instead of Zero Result). what is the best solution for implementing this ?


for example this Link returns ZERO_RESULTS but when i search this point in google maps it understand this point belongs to Persian gulf

Upvotes: 1

Views: 757

Answers (1)

Dr.Molle
Dr.Molle

Reputation: 117334

The result you get on google-maps is the response of a places-TextSearch.

So when the geocoding doesn't return any result, send an additional request to the places-service to get some informations about the coordinate.

Upvotes: 1

Related Questions