The idea to get gps coordinates was insane. So use google map api if you can afford pricing for your project else , the best free openstreet api also works just fine.
https://nominatim.openstreetmap.org/search?q={Name of place}&format=json