Locator 3.5

Miscellaneous tools
Message
Author
User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#46 Post by Geoffrey »

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: Select all

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.
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#47 Post by Geoffrey »

I declare Locator officially dead, googles grab for cash and world domination is to blame. :lol:
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
spiritwild
Posts: 181
Joined: Mon 03 Oct 2016, 10:06

#48 Post by spiritwild »

is this of any similarity to google maps? https://developer.here.com/documentation

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#49 Post by Geoffrey »

spiritwild wrote:is this of any similarity to google maps? https://developer.here.com/documentation
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

Image

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
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#50 Post by BarryK »

I stumbled across Overpass API, only looked at it very briefly, might be useful:

https://wiki.openstreetmap.org/wiki/Overpass_API
[url]https://bkhome.org/news/[/url]

Post Reply