The time now is Thu 12 Dec 2019, 00:42
All times are UTC - 4 |
Author |
Message |
Geoffrey

Joined: 30 May 2010 Posts: 2377 Location: Queensland
|
Posted: Wed 19 Sep 2018, 00:37 Post subject:
|
|
OK, I been looking around, OpenStreetMap may be the fix to get coordinates from, info here https://wiki.openstreetmap.org/wiki/Nominatim
I don't have a working linux machine with puppy at the moment, if someone with the inclination to fix this and would like to, I'm sure others would appreciate it.
This code should work to get the required info.
The Google map download still works, the only thing that appears to be the problem was retrieving location data to acquire the map.
Where there's a will there's a way
Code: | wget -O /tmp/locator/LOCATION 'https://nominatim.openstreetmap.org/?format=json&addressdetails-1&q='$location'&format=json&limit=1' |
Edit: it looks like they have now activated the requirement for a api key to access the maps too, worked fine this morning, OpenStreetMap may be the only hope.
_________________ Carolina: Recent Repository Additions

|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2377 Location: Queensland
|
Posted: Fri 21 Sep 2018, 20:13 Post subject:
|
|
I declare Locator officially dead, googles grab for cash and world domination is to blame.
_________________ Carolina: Recent Repository Additions

|
Back to top
|
|
 |
spiritwild

Joined: 03 Oct 2016 Posts: 177
|
Posted: Sat 22 Sep 2018, 15:47 Post subject:
|
|
is this of any similarity to google maps? https://developer.here.com/documentation
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2377 Location: Queensland
|
Posted: Sat 22 Sep 2018, 20:47 Post subject:
|
|
Yes it's similar, but just as Google has done it cost money for a key.
I looked at Openstreetmap tile servers but they are pretty basic with no detail.
https://wiki.openstreetmap.org/wiki/Tile_servers
A search for location json file is easy to get from openstreetmap, the problem is displaying a map.
I couldn't find a way of extracting the map from the webpage, the "#map=16" is the zoom level, there is no satellite view.
https://www.openstreetmap.org/#map=16/-24.8894/152.3197
_________________ Carolina: Recent Repository Additions

|
Back to top
|
|
 |
BarryK
Puppy Master

Joined: 09 May 2005 Posts: 9095 Location: Perth, Western Australia
|
Posted: Sat 22 Sep 2018, 21:48 Post subject:
|
|
I stumbled across Overpass API, only looked at it very briefly, might be useful:
https://wiki.openstreetmap.org/wiki/Overpass_API
_________________ https://bkhome.org/news/
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|