I’m working on a Google Maps project within a PHP application. I need to find a way to store a latitude and longitude pair as a singular value. I’m using this to help store markers with identical coordinates.
Is there way I can encode the latitude/longitude pair into a single string? I would like something like:
$lat = 45.18392;
$long = 62.18293;
// Would return a single string like 893jfd8sj39k
$single_string = make_single_string($lat, $long);
function make_single_string($lat, $long)
{
// Do something here with $lat and $long
return $single_string;
}
The most important part of the function is that it must return the same string EVERY time.
Thanks for the help!
I think you are looking for this:
result will be something like this: