473,545 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Way to get an array of latitude/longitude points (tuples) from a trip

I am not sure if this is the right place for this, but I thought it was
worth a shot.

What I want:
Enter a From: street address and a To: street address, and then specify

an interval (say every half mile). Then, I click a submit button, and
it gives me latitude and longitude points (in order) from the beginning

of my trip to the end of my trip in 1/2 mile increments.
I can't seem to find anything to simulate this, and I am not sure how
to go about coding this either.
BTW - I have used Yahoo geocoding service (to my delight), and while it

is a good service, I don't see a way to do this unless we knew every
street address in 1/2 mile increments.

Are there any Python modules that would assist with dealing with
latitude and longitude?
Can anyone out there help?

May 30 '06 #1
2 2515
kbperry schrieb:
I am not sure if this is the right place for this, but I thought it was
worth a shot.

What I want:
Enter a From: street address and a To: street address, and then specify

an interval (say every half mile). Then, I click a submit button, and
it gives me latitude and longitude points (in order) from the beginning

of my trip to the end of my trip in 1/2 mile increments.
I can't seem to find anything to simulate this, and I am not sure how
to go about coding this either.
BTW - I have used Yahoo geocoding service (to my delight), and while it

is a good service, I don't see a way to do this unless we knew every
street address in 1/2 mile increments.

Are there any Python modules that would assist with dealing with
latitude and longitude?
Can anyone out there help?


The problem is not the latitude/longitude. It would be trivial to
compute the great circle, thus the length of the trip between A and B
and divide it in smaller pieces to get 1-mile-distances.

But unless you own an Aircraft & are important enough to take flights
the direct route without air traffic control getting mad at you (aka:
you are George W. Bush or some other bigwig goverment guy), this won't
do you much good. What you needed would be a vectormap of the streets so
that you could do route planning. Which is expensive to get.

So I guess you are better off trying to find someone who offers that as
part of the service.
Diez
Diez

May 30 '06 #2
The problem is not the latitude/longitude. It would be trivial to
compute the great circle, thus the length of the trip between A and B
and divide it in smaller pieces to get 1-mile-distances.
Yeah, I am starting to wish we drove in straight lines.
But unless you own an Aircraft & are important enough to take flights
the direct route without air traffic control getting mad at you (aka:
you are George W. Bush or some other bigwig goverment guy), this won't
do you much good. What you needed would be a vectormap of the streets so
that you could do route planning. Which is expensive to get.
It just seems odd with all of the map software out there, that this
isn't available.
So I guess you are better off trying to find someone who offers that as
part of the service.


I wonder how expensive that would be....probably way out of our price
range.

May 31 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3061
by: jack | last post by:
not sure exactly where I should ask this question, but im looking for a database of Australian Postcodes that included the longitude/latitude. Does anyone know of such a thing? Preferably free...fingers crossed. many thanks jack
4
4840
by: YS Sze | last post by:
If you know the exact longitude and latitude for a specific location, would anyone think it'd make any sense to find out if this set of location numbers is really part of the Fibonacci series or not? Or, another way to look at this is that: Would anyone of you think it is worth a while to find out if there is any location on earth with the...
5
1308
by: elyob | last post by:
Hi, I've got a database that outputs markers on a google map project. The problem I am encountering is that some businesses have been located the same latitude and longitude, therefore markers don't show (others are underneath the top one). So, I need to get this MySQL output, parse it through an array creating an output such as ...
6
3109
by: bill | last post by:
I am about to start on a module that will accept a location from a user, use Google geolocation services to get the lat/lon and then compute the distance from the site visitor to about 100 kennels (could grow to 1000 eventually). Once I have the distance I need to sort the kennels by distance and present those within 500 miles. Approach...
1
4755
by: radskate360 | last post by:
Hi I am newer to programming and need a bit of help with this program. OK, heres the directions. The distance between two places on earth can be calculated by using their latitudes and longitudes. The calculation for this is as follows: (The latitudes and longitudes must be converted to radians (radians=degrees * pi / 180)). PI must...
5
2007
parshupooja
by: parshupooja | last post by:
Hello, Can any one how to calculate longitude and latitude of two addresses in asp.net C# Plz Help, thanks
5
10053
by: arial | last post by:
Hi all, I have a sql .bak file which i need to convert into xml file. can someone help with this? pointing out to some tutorial or some suggetion on how to start? Thak you,
1
2732
by: alan5 | last post by:
I want to answer on the topic australian postcode db with longitude/latitude posted by jack. He wrote: not sure exactly where I should ask this question, but im looking for a database of Australian Postcodes that included the longitude/latitude. Yes, I know where to get Australian Postcodes that included the longitude/latitude. Please see...
1
5299
omerbutt
by: omerbutt | last post by:
hi i am trying to store the longitude and latitude i have made the table with 3 columns codes, longitude , latitude and the type for longitude and latitude is decimal(15,11) but there are different lengths for the longitude and latitude value means some where it has 5 digits after decimal and somewhere 8 and when i save it in the table it places...
0
7393
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7803
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7411
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7749
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5965
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
1871
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.