Page 3 of 3

Posted: Tue 11 Sep 2018, 22:32
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.

Posted: Wed 12 Sep 2018, 01:53
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.

Posted: Mon 17 Sep 2018, 12:18
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/

gooooogle monkeywrench alert

Posted: Mon 17 Sep 2018, 12:22
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...

Re: gooooogle monkeywrench alert

Posted: Tue 18 Sep 2018, 04:08
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.

Posted: Wed 19 Sep 2018, 04:37
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.

Posted: Sat 22 Sep 2018, 00:13
by Geoffrey
I declare Locator officially dead, googles grab for cash and world domination is to blame. :lol:

Posted: Sat 22 Sep 2018, 19:47
by spiritwild
is this of any similarity to google maps? https://developer.here.com/documentation

Posted: Sun 23 Sep 2018, 00:47
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

Posted: Sun 23 Sep 2018, 01:48
by BarryK
I stumbled across Overpass API, only looked at it very briefly, might be useful:

https://wiki.openstreetmap.org/wiki/Overpass_API