Page 1 of 1
Calling a map with coordinates
Posted: Wed Mar 08, 2017 10:56 pm
by user#606
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.
Re: Calling a map with coordinates
Posted: Wed Mar 08, 2017 11:45 pm
by user#606
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.
Re: Calling a map with coordinates
Posted: Thu Jan 21, 2021 12:47 pm
by glenn9
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
Re: Calling a map with coordinates
Posted: Thu Jan 21, 2021 2:32 pm
by mrcoollion
Re: Calling a map with coordinates
Posted: Thu Jan 21, 2021 5:07 pm
by glenn9
Hi Paul,
Many thanks, that was a great help, all works as expected.
Kind regards,
Glenn
Re: Calling a map with coordinates
Posted: Thu Jan 21, 2021 5:10 pm
by glenn9
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
Re: Calling a map with coordinates
Posted: Thu Jan 21, 2021 5:18 pm
by mrcoollion
Hi Glenn,
With the very important and proven method of trial and error.

and some logical thinking
Regards,
Paul
Re: Calling a map with coordinates
Posted: Thu Jan 21, 2021 5:20 pm
by glenn9
Thank you again for taking the time do this.
Regards,
Glenn