Hello!

I need to take the latitude and longitude from the link that users will insert. BUT, google links are different (long, short, embed, etc.). How can I implement this, if you have any ideas and suggestions please share.

Thank you in advance!

  • How understandable, you want to get coordinates from a google map link? not easier to do so that users do not insert a link from a google map, but simply insert a specific address? - Arsen
  • @Arsen Yes, I need to get from google map links, but they are different, I need to get google map links from ALL. - Hakob Shaghikyan
  • but there are links in which there are no coordinates, I repeat, it is not easier to do so that users insert not a link from a google map, but simply insert a specific address? - Arsen
  • @Arsen This way is easy for developers, but not user-friendly, my task is to ensure maximum user comfort. - Hakob Shaghikyan
  • ease is nothing to do with, or you will have to force users to enter a link in the format google.com/maps/preview/@<latitude>,<longitude>,<zoom level>, or write code that through CURL will be addressed to the entered link ( for example, by short) and parsit the received information, but google will block if there are many requests - Arsen

0