I am working on a way of extracting the latitude and longitude from a Jet Form filed.
If user goes to Google Maps and right clicks on the point of the map they can copy the lat/long coordinates. This value is then pasted into a form field called ‘location’.
When the post is displayed, I want to use the lat and long substrings of location to enter into a map widget.
This is what I have done so far, but I know something is missing. The Custom Post Type is called bid-packages.
$location = $post->locaton;
$lat = strstr($location, ‘,’, true);
$location = $post->location;
$long = strstr($location, ‘,’);