Skip to content
Advertisement

Get location from latitude and longitude in PHP

I want to get address, city, state and country in different variables so that I can display it separately but due to different latlong, somewhere I am getting whole address and somewhere only state and country, so I am not able to get a specific address due to changing latlong.

Here is my code:

JavaScript

Advertisement

Answer

Try Below one:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement