/    Sign up×
Community /Pin to ProfileBookmark

UK Railway stations longitude/latitude…

Has anyone done this before?

I’ve made a longitude/latitude function in the past with PHP and MySQL, but unfortunately can’t find the data for UK Railway stations, other than on this site:
[url]http://www.co2balance.uk.com/co2calculators/rail-travel[/url].

This script basically does what I need, calculates the miles between railway stations. But I need to get the longitude/latitude values to start with.

Can anyone suggest where I find this data?

I emailed the company but the reply didn’t help.

Thanks for any tips

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@toicontienFeb 14.2009 — You might try the geocoding service for Google Maps.

I'm actually writing a maps API that allows PHP to bridge Google, Yahoo and MapQuest mapping services. It will not only provide methods for geocoding (looking up lat/lng values for an address), but also provide an API for creating AJAX-enabled maps embedded on web pages.

In the mean time, you might like the PHP Google Maps API.
×

Success!

Help @gavster spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...