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)

    • daviding: “Instead of #SustainableDevelopmentGoals, #KaitlinKish #Steph…” March 12, 2023
      Instead of #SustainableDevelopmentGoals, #KaitlinKish #StephenQulley say #EcologicalLivelihoodGoals. "informal processes of exchange, familial care, place-bound community, mutual aid, and reciprocation –​which we designate as _Livelihood_"Open access book for March 13 https://wiki.st-on.org/2023-03-13 #SystemsThinking #EcologicalEconomics
    • daviding: “From the debate between Michael Quinn Patton and Michael C. …” March 10, 2023
      From the debate between Michael Quinn Patton and Michael C. Jackson OBE on "Systems Concepts in Evaluation" on 2023-02-27, I've digested into text the few minutes with the largest contention. https://ingbrief.wordpress.com/2023/03/10/concerns-with-the-way-systems-thinking-is-used-in-evaluation-michael-c-jackson-obe-2023-02-27/ #SystemsThinking #evaluation
    • daviding: “Peer-reviewed article on #SystemsChanges Learning 2019-2022 …” March 9, 2023
      Peer-reviewed article on #SystemsChanges Learning 2019-2022 published in special issue of J. #Systemics #Cybernetics & #Informatics, on "#Sustainable, Smart and #SystemicDesign #PostAnthropocene" edited by #MarieDavidova #SusuNousala #ThomasJMarlowe https://coevolving.com/blogs/index.php/archive/systems-changes-learning-recasting-reifying-jsci/ #SystemsThinking
    • daviding: “Truthiness was coined by Stephen Colbert in 2005, and became…” March 7, 2023
      Truthiness was coined by Stephen Colbert in 2005, and became legitimated as an entry in a dictionary by 2010. > ... _truth_ just wasn’t “dumb enough.” “I wanted a silly word that would feel wrong in your mouth,” he said. > What he was driving at wasn’t _truth_ anyway, but a mere approximation of it […]
    • daviding: “Generative AI, such as ChatGPT, may be better viewed as putt…” March 7, 2023
      Generative AI, such as ChatGPT, may be better viewed as putting together hypotheses, where testing either leads to corroboration or truthiness. > The glitch seems to be a linear consequence of the fact that so-called Large-Language Models are about predicting what _sounds right_, based on its huge data sets. As a commenter put it in […]
  • RSS on IngBrief

  • Recent Posts

  • Archives

  • RSS on daviding.com

  • 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