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 *

  • RSS qoto.org/@daviding (Mastodon)

    • New status by daviding August 19, 2019
      In the Canadian press, this is attributed to inverted yield curve, resulting from the trade war. > Anyone buying that bond is willingly buying an investment that's guaranteed to lose money, but investors are more than happy to buy it up - because the fear is that alternative investments will fare even worse. [....]> Those […]
    • New status by daviding August 19, 2019
      There's something seriously wrong in the global financial markets, when banks are offering mortgages at zero or negative rates. > Jyske Bank, Denmark's third largest, has begun offering borrowers a 10-year deal at -0.5%, while another Danish bank, Nordea, says it will begin offering 20-year fixed-rate deals at 0% and a 30-year mortgage at 0.5%.> […]
    • New status by daviding August 18, 2019
      Web video of Systems Changes: Learning from the Christopher Alexander Legacy, extending #patternlanguage especially Eishin School and Multi-Service Centers methods-in-practice. For #SystemsThinking Ontario, up the learning curve on ongoing research. http://coevolving.com/blogs/index.php/archive/systems-changes-learning-from-the-christopher-alexander-legacy-st-on-2019-02-11/
    • New status by daviding August 16, 2019
      Web video of presentation of Evolving Pattern language towards an Affordance Language, 2018, on week visiting#RaphaelArar and #JimSpohrer at Almaden. Insider's history of science and prospects http://coevolving.com/blogs/index.php/archive/evolving-pattern-language-towards-an-affordance-language-almaden-2018-05-09/#systemsthinking #patternlanguage
    • New status by daviding August 12, 2019
      Web videos of keynote presentation "Innovation Learning for Sustainability: What's smarter for urban systems" for 2018 International Conference on Smart Cities and Design (SCUD) in Wuhan. http://coevolving.com/blogs/index.php/archive/innovation-learning-for-sustainability-scud-2018-04-21/
  • RSS on IngBrief

  • Recent Posts

  • Archives

  • RSS on daviding.com

    • 2019/08 Moments August 2018
      Enjoyed summer with events in Toronto, followed by trips back my home town Gravenhurst, staying overnight for the first time in over 30 years.
    • 2019/07 Moments July 2019
      Busy month of living every day of the summer to the fullest, visiting family and friends, enjoying the local sights of the city.
    • 2019/06 Moments June 2019
      Summer arrived in Toronto, with the month ending in travel to BC and Oregon.
    • 2019/05 Moments May 2019
      Family time, empty nest, short trip to conference nearby, friends at home.
    • 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.
  • RSS on Media Queue

  • 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