Getting a Google MAP
Mike Bonner
bonnmike at gmail.com
Fri Apr 28 14:00:26 EDT 2017
heres a link to the geocode api information:
https://developers.google.com/maps/documentation/geocoding/intro I'm not
sure my interpretation of the viewport is accurate, but even if you just
use the center point and do the calculations, and ignore the rest of the
data, it should work.
On Fri, Apr 28, 2017 at 11:56 AM, Mike Bonner <bonnmike at gmail.com> wrote:
> If you do a second call to the geocode api you can get the info you need.
>
> https://maps.googleapis.com/maps/api/geocode/json?address=
> Berkeley,+CA&zoom=14&size=400x400
>
> There appear to be 2 location sections. One contains the bounds of the
> request, the other contains the bounds of the viewport IE zoom level 14, at
> 400x400
>
> i haven't really tested much other than to see what kind of results come
> back, but hopefully this will get you to where you want to go.
>
> I also saw the following.. https://gis.stackexchange.com/questions/
> 46729/corner-coordinates-of-google-static-map-tile which is very
> interesting. The problem being you would still need the center point as a
> starting position, then you can calculate the corners based on the zoom
> factor.
>
> On Fri, Apr 28, 2017 at 9:42 AM, prothero--- via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> Thanks for the openstreetmap link. I'm really liking the Google maps
>> option since my app is being developed for free distribution to educators
>> and I am not particularly interested in streets. The satellite or terrain
>> views are what I want.
>>
>> Now all I have to do is figure out how to get the lat/Lon values at the
>> corners. Then I'll be all set.
>>
>> If anybody else is interested in what .I'm doing, I'll be glad to share
>> code.
>>
>> Best,
>> Bill
>>
>> Best,
>> Bill
>>
>> William Prothero
>> http://es.earthednet.org
>>
>> > On Apr 28, 2017, at 2:22 AM, hh via use-livecode <
>> use-livecode at lists.runrev.com> wrote:
>> >
>> > Not to forget related to (static) maps, especially as you can have
>> > them from there also as SVG or 'true' PDF (not embedded PNG only):
>> >
>> > https://www.openstreetmap.org
>> >
>> > For exporting as HTML link or as an "image" (JPG, PNG, SVG, PDF)
>> > see https://wiki.openstreetmap.org/wiki/Export
>> >
>> > In short:
>> > Don't use the Export button at top/left (which is for raw map
>> > data) but _the sharing link at right_ that opens a prefs box.
>> >
>> >
>> > _______________________________________________
>> > use-livecode mailing list
>> > use-livecode at lists.runrev.com
>> > Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> > http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
More information about the use-livecode
mailing list