Coevolving Innovations

… in Business Organizations and Information Technologies

Extracting the longitude and latitude from a Google Map

I like Google Maps, because they provide a lot of context around the location that I’m searching. With the amount of travel that I do, it’s always nice to know what’s near the hotel — particularly restaurants, hotels, and shopping.

I’m setting up a new CiviCRM web site, and it has the feature of asking about the longitude and latitude of locations (e.g. home address) when filling in the user profile. It’s easy enough to find the place using Google Maps, but decoding the URL is pretty tricky.

In an entry on Google Maps Help Group, someone asking that exact question got a response:

When I do a search, I’d like to get the latitude and longitude results for the location I’m searching. How do I do this?

Copy this line into the address bar of your browser

  • javascript:void(prompt(”,gApplication.getMap().getCenter()));

It displays the latitude and longitude of the centre point of the map.

Location-based services is thought to be one of the next big things. Knowing where you want to go works out a lot better if you know where you are, though.

1 Comment

  • Note that CiviCRM has a feature that will query google or yahoo and get the lat/long given an address. To enable this make sure you have entered you mapping provider and api key in global settings


Leave a Reply

Your email address will not be published. Required fields are marked *

  • Recent Posts

  • Archives

  • RSS qoto.org/@daviding (Mastodon)

    • New status by daviding May 19, 2019
      Fit the people around an organization; or an organization around the people? Working backwards, say @MitroffCrisis + #HaroldLinstone, from current concrete choices to uncertain futures, surfaces strategic assumptions in a collective decision, better than starting with an abstract scorecard to rank candidates. The Unbounded Mind is an easier-reading follow-on to The Design of Inquiry Systems […]
    • New status by daviding April 28, 2019
      Our house is on the edge of a flood plain. We know this, because the end of our street in Toronto Riverside was at Lake Ontario, before landfill in the early 1900s. Not everyone knows about what's under the place where they live. "Poor flood-risk maps, or none at all, are keeping Canadian communities in […]
    • New status by daviding April 26, 2019
      An open education system encourages scholarship that embraces perspectives from around the world. The Scholar Rescue Fund is a hopeful initiative that, in a perfect world, wouldn't have to exist. "Canada playing major role as safe haven for at-risk academics from strife-torn countries" | Danielle Edwards | April 23, 2019 | Globe & Mail at […]
    • New status by daviding April 25, 2019
      Moving from coal to green energy for Dong (nee Danish Oil and Natural Gas) started in 2008, leading to an CEO change in 2012, to a 2017 divestment of fossil-fuel bases businesses. Perseverance can pay off, but patience goes through trials. "A tale of transformation: the Danish company that went from black to green energy" […]
    • New status by daviding April 21, 2019
      Public libraries can become hubs for peer-to-peer learning. In the Let's Learn Teach Online program, #TorontoLibrary has partnered with #P2PU, #CiscoNetAcad, #TorontoESS, and #GBCollege to facilitate "Linux Unhatched" and "Introduction to IoT". Larysa Essex shared their experiences at the @gtalug meeting on April 9, 2019. https://daviding.wordpress.com/2019/04/20/2019-04-09-larysa-essex-linux-unhatched-learning-circles-at-toronto-public-library-web-video/
  • RSS on IngBrief

  • RSS on Media Queue

  • RSS on daviding.com

    • 2019/04 Moments April 2019
      End of a 23-day visit in Shanghai, readjusting to Eastern Time with the many lecture, meetup, friends and family distractions of Toronto.
    • 2019/03 Moments March 2019
      Month of intensive lectures and research meetings, in Toronto and then in Shanghai, with social breaks on local excursions to clear minds.
    • 2019/02 Moments February 2019
      Reduced exercise outside with a cold and snowy February, with excursions out of the house to warm places with family, friends and colleagues.
    • 2019/01 Moments January 2019
      January in Toronto has lots of intellectual offerings and artistic exhibitions to attract the curious out of warm homes, through cold and snow.
    • 2018/12 Moments December 2018
      Tried to have a normal month, with a busy social calendar of birthdays, a funeral plus Christmas season, while daily temperatures hovered just above freezing.
    • 2018/11 Moments November 2011
      Mentally busy month with a conference coming to town, and maintaining the regular pattern of local meetings, travel around town only by bicycle.
  • Meta

  • Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
    Theme modified from DevDmBootstrap4 by Danny Machal