How to get geolocation without using the google api that is now charging a fortune?

1

I need to get latitude and longitude for the address that the user types to search for "no ip .." but I can not find a way to do this via php without google api since he is charging a monthly high .. I believe there must be other ways to be done ...

Example:

$json_file = json_decode(file_get_contents("http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=Avenida%20Paulista,%202064,%20Sao%20Paulo"));   


$result = $json_file->results;
$adress = $result->address_components;
$lat    = $adress->geometry->location->lat;

In the url of file_get you can put another site that has this information ... but what and how ??

    
asked by anonymous 25.11.2018 / 00:30

0 answers