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)

  • RSS on IngBrief

    • 1969, 1981 Emery, System Thinking: Selected Readings
      Social Systems Science graduate students in 1970s-1980s with #RussellAckoff, #EricTrist + #HasanOzbehkhan at U. Pennsylvania Wharton School were assigned the Penguin paperback #SystemsThinking reader edited by #FredEEmery, with updated editions evolving contents.
    • 1968 Buckley, “Modern Systems Research for the Behavioral Scientist: A Sourcebook”
      Resurfacing 1968 Buckley, “Modern Systems Research for the Behavioral Scientist: A Sourcebook” for interests in #SystemsThinking #SocioCybernetics #GeneralSystemsTheory #OrganizationScience . Republication in 2017 hardcopy may be more complete.
    • Wholism, reductionism (Francois, 2004)
      Proponents of #SystemsThinking often espouse holism to counter over-emphasis on reductionism. Reading some definitions from an encyclopedia positions one in the context of the other (François 2004).
    • It matters (word use)
      Saying “it doesn’t matter” or “it matters” is a common expression in everyday English. For scholarly work, I want to “keep using that word“, while ensuring it means what I want it to mean. The Oxford English Dictionary (third edition, March 2001) has three entries for “matter”. The first two entries for a noun. The […]
    • Systemic Change, Systematic Change, Systems Change (Reynolds, 2011)
      It's been challenging to find sources that specifically define two-word phrases -- i.e. "systemic change", "systematic change", "systems change" -- as opposed to loosely inferring reductively from one-word definitions in recombination. MartinReynolds @OpenUniversity clarifies uses of the phrases, with a critical eye into motives for choosing a specific label, as well as associated risks and […]
    • Environmental c.f. ecological (Francois, 2004; Allen, Giampietro Little 2003)
      The term "environmental" can be mixed up with "ecological", when the meanings are different. We can look at the encyclopedia definitions (François 2004), and then compare the two in terms of applied science (i.e. engineering with (#TimothyFHAllen @MarioGiampietro and #AmandaMLittle, 2003).
  • Recent Posts

  • Archives

  • RSS on daviding.com

    • 2020/11 Moments November 2020
      Day shortening and temperatures dropping meant bundling up for bicycling.
    • 2020/10 Moments October 2020
      Clear autumn near home in Toronto, extended with a family vacation within Canada to Vancouver, where the Covid rates are more favourable
    • 2020/09 Moments September 2020
      Discovering more of the neighbourhood, bicycling mostly in the mornings.
    • 2020/08 Moments August 2020
      Moderate summer temperatures in a city normally overheated with activity, residents gradually emerging as public venues opened cautiously.
    • 2020/07 Moments July 2020
      Daytimes full of new work assignment and training, evenings and weekends bicycling around downtown Toronto as it slowly reopens from pandemic.
    • 2020/06 Moments June 2020
      Most of month in Covid-19 shutdown Phase 1, so every photograph is an exterior shot. Bicycling around downtown Toronto, often exercising after sunset.
  • 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