Skip to content

Tag: geolocation

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: Answer Try Bel…

PHP Latitude Longitude to Address

I have a form on my website where a user enters an address of a place. When they submit the form, I convert this location into latitude/longitude and store this in a MySQL Database. I am using Google’s Geocode service for this conversion. The problem is that I can’t find either a class or a servic…

Get coordinates from script tag, image tag, link

I’m building a search engine for deals and I put all deals on a map, so I need coordinates from websites with scraping. So, coordinates can be on scrit, tag, image, link, etc. Is there any tool or any script, framework, that help me to quick get coordinates from some web sites ? How to do that? With PHP…

PHP to Javascript Arrays and GPS locations

I’m making a script that will hopefully be mainly PHP so it doesn’t require Javascript later on, but right now I’m stuck on a few things. What is the best way to store GPS locations, and then compare them? I could use to store them in a database (currently using MySQL), and then find people …