简体   繁体   中英

Symfony (PHP) Address to Latitude Longitude

I would like to create a form where a user enters an address of a place and it will be stored in a database in latitude / longitude. I did a little research on google and I am lost. One knows either a class or service (php, Symfony) to convert an address into latitude / longitude

Need help please, thanks in advance

You can probably use BazingaGeocoderBundle to implement it, just add it to your composer. Is probably one of the best tools for this purpose...

https://github.com/geocoder-php/BazingaGeocoderBundle

Documentation:

https://github.com/geocoder-php/BazingaGeocoderBundle/blob/master/Resources/doc/index.md

Installation:

https://github.com/geocoder-php/BazingaGeocoderBundle/blob/master/Resources/doc/index.md#installation

it uses Geocoder

http://geocoder-php.org/Geocoder/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM