Select a part of a text (in order to geocode)

Hello !
I have a small problem, I would like to get a part of a text label : I would like to get a GPS location if I write a real adress on google maps (for example) : 33 Bedford St, Covent Garden, London WC2E 9ED, Royaume-Uni. I already code a texbox where I write the adress and i sent it to google maps and google maps sent back to me this adress in a label :: "https://www.google.com/maps/place/33+Bedford+St,+Covent+Garden,+London+WC2E+9ED,+Royaume-Uni/@51.5109936,-0.125574,18z/data=!3m1!4b1!4m5!3m4!1s0x487604cc14b5f447:0x5dd9365e5c4255b6!8m2!3d51.5109919!4d-0.1244797"
Once I recover this adress in a label I would like to recover this part of the URL : "51.5109936,-0.125574,18" who is the GPS Location, I don't know how to write the code to extract a part of the URL,
Can you help me ?
Thanks you so much,
Carl

Here is one way ( I don't think you want the ",18"):

of interest... if you put those coordinates into Google Maps, you do not get 33 Bedford Street.

1 Like

Thanks you very much for you help,
To be honest, I found an other solution, but thanks you anyway! But your solution is really good, it will help me for an other problem.
Thanks you and have a good day.
PS : Here, is the solution I found for the others persons if they need help.

Without GoogleMaps you can obtain the coordinates from a street address by geocoding with the LocationSensor

See a discussion of reverse geocoding and geocoding Reverse GEOCODE from custom Lat Long

If you put the coordinates 51.51099,-0.12448 into Google Maps, you get

Regards,
Steve

1 Like

Thanks you very much Steve, it was exactly what I need, it's the easiest way to do what I want to do.
Have a good day

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.