How do I get longitude and latitude of a certain place using OpenStreetMap in PyQt5. I found a solution using Google Maps but I need a free solution for this because I just want to get latitude and longitude of a certain place, nothing else.
Asked
Active
Viewed 594 times
0

YouRos
- 23
- 6
-
What do you mean by *how to get longtitude and latitude of a certain place*? What google maps solution do you mean? – eyllanesc Aug 19 '19 at 09:53
-
Hi eyllanesc i have read your answer in this link : https://stackoverflow.com/questions/53627316/how-to-create-widget-in-pyqt5-to-show-google-map . i need user geolocation for some processes so to do this, I first need to load a map for him so that he can pinpoint his position on the map. – YouRos Aug 19 '19 at 10:20
-
You want a map where the user clicks and then prints that position. Am I correct? – eyllanesc Aug 19 '19 at 10:27
-
What I want to get from the user and store that in the database is a point that contains two arguments:(latitude and longtitude). – YouRos Aug 19 '19 at 10:30
-
The GeoCoder (get the coordinates given the name of the place) is not possible with OSM since it does not offer that service, so only the rest is possible. – eyllanesc Aug 19 '19 at 10:32
-
Foregive me eyllansec probably i coudn't present what i meant as well. I edit my question and upload a picture from what i want please check that. – YouRos Aug 19 '19 at 11:15
-
An image without explanation does not help, what I can deduce is that you want the user to click on the map and add a marker printing the position. Is that what you want? If it is not, explain in more detail what you want. . – eyllanesc Aug 19 '19 at 11:18
-
Yes almost and explanation added on image please check again. – YouRos Aug 19 '19 at 12:29