How to find the lat lng from a geocoded address?

前端 未结 2 1542
时光取名叫无心
时光取名叫无心 2021-01-24 15:21

I\'m trying to create a Gmap to allow people to geocode an address and find the respective lat lng. I would like to see this in the forms I\'ve already created. Also, I would li

2条回答
  •  孤街浪徒
    2021-01-24 16:06

    Ok... here's the code that makes what I wanted to. It might not be that elegant, but it works. I used the getPosition() method to get the coordinates, just have to click in the geocoded marker!

    
    
    
        
        
        Geocoder
    
    
    
    
    
    
    

提交回复
热议问题