how do I get the PLACE ID from lat and lng? I am using wedevs User Froontend form and this returns:
a:3:{s:7:"address";s:45:"Gladbacher Wall 100, 50670 Köln, Deutschland";s:3:"lat";s:17:"50.95298520000001";s:3:"lng";s:16:"6.94798650000007";}
and this will be:
array (
'address' => 'Gladbacher Wall 100, 50670 Köln, Deutschland',
'lat' => '50.95298520000001',
'lng' => '6.94798650000007',
)
Now I want to hook into the sending of the form an get the PLACE ID from the lat lng the wedevs form returns.
Because I need to put it into another form another plugin. This plugin requires.
a:2:{s:5:"place";s:92:"{"place":"ChIJYcZkHrwvv0cRAdn4PaVGbfU","location":{"lat":50.9993708,"lng":6.93866950000006}}";s:4:"info";s:28:"2 Neusser Landstraße Nippes";}
This is:
array (
'place' => '{"place":"ChIJYcZkHrwvv0cRAdn4PaVGbfU","location":{"lat":50.9993708,"lng":6.93866950000006}}',
'info' => '2 Neusser Landstraße Nippes',
)
So I need to generate the PLACE to create an array for the other plugin.
Any suggestion?
Thanks for helping! Denis