Calling a map with coordinates

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Calling a map with coordinates

Post by user#606 » Wed Mar 08, 2017 10:56 pm

I am contemplating software that will call a google map or Bing map to the screen at specified coordinates.
It would be a bit like using URL to call a web address.
For example, a set of coordinates are selected from a database and
might be triggered by something simple like:-
Call Google map 11°19'42.90"N 73°57'56.05"W

Obviously the example is not real, but I am looking for something simple and not get bogged down with Google APIs.

Any help or advice would be greatly appreciated.

user#606
Posts: 217
Joined: Sun Jan 27, 2008 12:25 pm
Contact:

Re: Calling a map with coordinates

Post by user#606 » Wed Mar 08, 2017 11:45 pm

Talk about lucky, I have just figured out the answer myself and it sort of works. All I need now is to figure out how to include the zoom factor.

Example that would be preceded with the URL command http://maps.google.com/?q=@-30.168535,22.950509
Takes you to South Africa.

Any advice on refinements would be wonderful. I think I need to lay down, my brain cell has started to throb.

glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: Calling a map with coordinates

Post by glenn9 » Thu Jan 21, 2021 12:47 pm

user#606 wrote:
Wed Mar 08, 2017 11:45 pm
Talk about lucky, I have just figured out the answer myself and it sort of works. All I need now is to figure out how to include the zoom factor.
Hi,

did you manage to set the zoom factor?

Thanks,

Glenn

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Calling a map with coordinates

Post by mrcoollion » Thu Jan 21, 2021 2:32 pm

Last edited by mrcoollion on Thu Jan 21, 2021 5:15 pm, edited 2 times in total.

glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: Calling a map with coordinates

Post by glenn9 » Thu Jan 21, 2021 5:07 pm

Hi Paul,

Many thanks, that was a great help, all works as expected.

Kind regards,

Glenn

glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: Calling a map with coordinates

Post by glenn9 » Thu Jan 21, 2021 5:10 pm

Hi Paul,

can I also ask, how did you know to add the 'z' for the zoom factor etc - when I tried to google how to do this I was just confronted with lots of javascript code that I couldn't make head or tail of!

Is there an easy reference for the parameters that can be altered for google maps?

Regards,

Glenn

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Calling a map with coordinates

Post by mrcoollion » Thu Jan 21, 2021 5:18 pm

Hi Glenn,

With the very important and proven method of trial and error. :D and some logical thinking 8)

Regards,

Paul

glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: Calling a map with coordinates

Post by glenn9 » Thu Jan 21, 2021 5:20 pm

Thank you again for taking the time do this.

Regards,

Glenn

Post Reply