1

The Scenario: My customer wants to let the users insert their location either by choosing the country, city, region, state, etc.. from dropdowns OR the user can choose the location using google API and then fill the dropdowns by the data comes from google API after comparing the retrieved values with the values in the dropdowns.

to accomplish this scenario I should save all countries Info in a local database to fill dropdowns and of course should be the same names in google API to match it later, and then the user will be able to select their location using dropdowns.

So, My question is it possible to get all countries Info from google API or any library based on google API to use it in the dropdowns.

I found this answer before but the answer is old and the source of data in Geonames not based on google API, So if I use it I will face a lot of differences in names of the cities, regions, states, etc..

and what I want is to get all countries data based on google API even if this service paid.

Additional Note: I Use ( C#, Asp.Net Core, Xamarin Forms, Angular )

5
  • 1
    Please, If this question out offtopic, let me know if there is a website I can post my question on it – Anas Alweish Nov 11 '20 at 5:35
  • 1
    As said in the answer you mention, I doubt this is allowed under the licence terms of Google. Have you considered using an OpenStreetMap-based geocoder like Nominatim or Photon ? – Léo M Nov 11 '20 at 10:01
  • @LéoM Thanks for your quick replay, No I haven't considered using Nominatim, I will read more about it – Anas Alweish Nov 16 '20 at 11:49
  • I tried to search for an area now using nominatim.openstreetmap.org and I did not find it, I think it's not as accurate as Google Maps – Anas Alweish Nov 16 '20 at 11:58
  • If I can get all locations in the world as ( longitude & latitude ) after that I can use GeoCoding from Google – Anas Alweish Nov 16 '20 at 12:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.