Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 19 Dec 2018, 09:14
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Locator 3.5
Post new topic   Reply to topic View previous topic :: View next topic
Page 4 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4
Author Message
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: 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
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Fri 21 Sep 2018, 20:13    Post subject:  

I declare Locator officially dead, googles grab for cash and world domination is to blame. Laughing
_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
spiritwild


Joined: 03 Oct 2016
Posts: 160

PostPosted: Sat 22 Sep 2018, 15:47    Post subject:  

is this of any similarity to google maps? https://developer.here.com/documentation
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 2362
Location: Queensland

PostPosted: Sat 22 Sep 2018, 20:47    Post subject:  

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



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
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 8756
Location: Perth, Western Australia

PostPosted: 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

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 4 of 4 [50 Posts]   Goto page: Previous 1, 2, 3, 4
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

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
[ Time: 0.0613s ][ Queries: 13 (0.0246s) ][ GZIP on ]