Yii Framework Forum: User city for profile - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

User city for profile Rate Topic: -----

#1 User is offline   Benn 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 48
  • Joined: 16-January 11
  • Location:Paris

Posted 03 November 2017 - 09:22 AM

Hello,
I'd like to allow the user to enter his home town in his profile (using Yii2-user) and get it's coordinates (to later show how far appart users are).
I tried getting the geonames database, but it's very slow for the user to select a city.
I was hoping to be able to query google maps api for a quick autocomplete input field or something similar (ideally free).
Any ideas ?
I've see there are google maps extensions, but I don't need to display maps or anything, just to select the city and get it's latitude and longitude to calculate distances.

Thanks !

Cheers

Bennn
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users