Locator 3.5

Miscellaneous tools
Message
Author
User avatar
Marv
Posts: 1264
Joined: Wed 04 May 2005, 13:47
Location: SW Wisconsin

#41 Post by Marv »

I edited my post 2 posts above to clarify that I now have tested BarryKs patch in the 3.70 version. My original approach adding in the older libraries worked reliably in a wide variety of pups but did not work in 64b puppies and involved carrying the older libraries. BarryK did it right. Less overhead and works in both 64b and 32b pups.
Pups currently in kennel :D Older LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64 and upupEF for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.

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

#42 Post by BarryK »

I created a PET in the repo for EasyOS and Quirky, gave it version number 3.7.2:

http://bkhome.org/news/201809/locator-m ... iewer.html

It should work in all pups.
[url]https://bkhome.org/news/[/url]

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

#43 Post by BarryK »

I am finding using Locator is hit-and-miss, mostly miss. When addresses are entered, failure is reported. Actually, the text returned in /tmp/locator/LOCATION is:

Code: Select all

{
   "error_message" : "Keyless access to Google Maps Platform is deprecated. Please use an API key with all your API calls to avoid service interruption. For further details please refer to http://g.co/dev/maps-no-account",
   "results" : [],
   "status" : "OVER_QUERY_LIMIT"
}
It is making Locator pretty much unusable. Supposed to get an api key:

https://cloud.google.com/maps-platform/ ... t-changes/
[url]https://bkhome.org/news/[/url]

User avatar
Marv
Posts: 1264
Joined: Wed 04 May 2005, 13:47
Location: SW Wisconsin

gooooogle monkeywrench alert

#44 Post by Marv »

All patched flavors of locator were working well and displaying maps on all pups for me as of September 11 2018 here. Alas, they no longer do for me. The reason is that google is now is enforcing the requirement for an API developer key for static maps so the wget line to retrieve the static map fails with a 403 error. Could someone confirm? The Lat and Long retrieval and clickthrough to google maps still work here. Grrr. BarryK confirmed while I was typing...
Pups currently in kennel :D Older LxPupSc and X-slacko-4.4 for my users; LxPupSc, LxPupSc64 and upupEF for me. All good pups indeed, and all running savefiles for look'n'feel only. Browsers, etc. solely from SFS.

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

Re: gooooogle monkeywrench alert

#45 Post by Geoffrey »

Marv wrote: Grrr. BarryK confirmed while I was typing...
That's a shame guy's, when I first started this I did so as I found it didn't need a api key, then a key was only required the retrieve more detailed information.

Image retrieval appears to still work

https://maps.google.com/maps/api/static ... =satellite

That would be right now it won't let the map view, they must be watching me it worked fine earlier today.
Last edited by Geoffrey on Wed 19 Sep 2018, 08:35, edited 1 time in total.
[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

#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