LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2012, 09:09 AM   #1
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
Is it possible to click on a Google map? Also, how to find the distance bet. 2 points


Hi,
I'm not very well acquainted with Google maps, and trying to find out whether I SHOULD or not, so.... is it possible to click somewhere on a map, and have it return the latitude and longitude of that point?

Also, is it possible to give it 2 points and have it tell me the distance between them by ROAD, NOT a straight line joining the 2 points....? This type of thing has been done by Streetmap in the UK, I want to know whether Google will do it as well. I am in India, so the points would be in India.


Thanks.
 
Old 05-18-2012, 09:28 AM   #2
danielbmartin
Senior Member
 
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,881

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Quote:
Originally Posted by resetreset View Post
I'm not very well acquainted with Google maps, and trying to find out whether I SHOULD or not ...
I am in the US, and use Google maps every day. The data is remarkably detailed and generally accurate. That might not be the case in your part of the world.

Quote:
Originally Posted by resetreset View Post
... is it possible to click somewhere on a map, and have it return the latitude and longitude of that point?
I never had a need for lat/long so discovered this by trial-and-error.
1) Display the map of my neighborhood.
2) Right-click on my house location.
3) See a pop-up menu.
4) Click on What's here?
5) See 35.753112,-78.870081 in the Google search window.
Quote:
Originally Posted by resetreset View Post
Also, is it possible to give it 2 points and have it tell me the distance between them by ROAD, NOT a straight line joining the 2 points....?
Google asks for a travel start point (indicated by a mouse click) and end point (another mouse click). It then provides a suggested travel route, the distance by that route, and an estimated travel time.

The Google Maps user may alternatively specify a bicycle routing or pedestrian routing. Depending on the location of one-way streets and other anomalies, these three routes may be quite different.

Daniel B. Martin
 
Old 05-19-2012, 02:56 AM   #3
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Original Poster
Rep: Reputation: 62
Quote:
Originally Posted by danielbmartin View Post
Google asks for a travel start point (indicated by a mouse click) and end point (another mouse click). It then provides a suggested travel route, the distance by that route, and an estimated travel time.


Daniel B. Martin
Is there any API for this? What I'm aiming for is for a user to specify a location when they sign up to my site, (it's an e-commerce-ish site, and I need to know where to deliver the goods to), and I can then tell Google - "My warehouse is here, how long to the destination, and how do I get there?" - is this possible? I'm assuming there would be charges, since this way the users wouldn't see any of Google's own ads, but I guess I'll just have to accept that :}
 
Old 05-20-2012, 01:28 PM   #4
danielbmartin
Senior Member
 
Registered: Apr 2010
Location: Apex, NC, USA
Distribution: Mint 17.3
Posts: 1,881

Rep: Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660Reputation: 660
Quote:
Originally Posted by resetreset View Post
Is there any API for this?
Google is your friend. Google on "google maps api" and find plenty of hits including this one:
https://developers.google.com/maps/

Quote:
I'm assuming there would be charges ...
Nope, it's all free.

Daniel B. Martin
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
add a click-able map to a web page faizlo Linux - Software 1 02-27-2012 08:09 PM
Add your local knowledge to the map with Google Map Maker for the United States mjolnir General 4 05-04-2011 04:27 PM
distance between two points with x, y and z coordinates elsuccia Programming 3 05-17-2010 07:31 PM
How do I find the distance to the wireless transmitter? William (Dthdealer) Linux - Software 10 04-10-2010 05:08 AM
Good program for plotting points on a map? Electrode Linux - Software 0 05-30-2004 02:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration