## longitude

### Mapping latitude/longitude to a distorted map

I have a bunch of latitude/longitude pairs that map to known x/y coordinates on a (geographically distorted) map. Then I have one more latitude/longitude pair. I want to plot it on the map as best is possible. How do I go about doing this? At first I decided to create a system of linear equations for the three nearest lat/long points a...

### How do I calculate distance between two latitude longitude points?

Here's an easy one for you: How do I calculate the distance between two points points specified by latitude and longitude? EDIT: For clarification, I'd like the distance in kilometres, the points use the WGS84 system and I'd like to understand the relative accuracies of the approaches available. ...

### Converting latitude/longitude to Alberta 10 TM Projection

I need to convert latitude/longitude coordinates into Easting/Northing coordinates in the Alberta 10 TM Projection. The 10 TM projection is similar to UTM, but it is a custom projection for the province of Alberta, Canada. I think (with some effort) I could code it myself but would rather not reinvent the wheel if it's been done alread...

### How to convert an address to a latitude/longitude?

How would I go about converting an address or city to a latitude/longitude? Are there commercial outfits I can "rent" this service from? This would be used in a commercial desktop application on a Windows PC with fulltime internet access. ...

### Working with latitude/longitude values in Java

Does anyone know of any free utility jars for java that assist with longitude/latitude manipulation in Java? I am wanting to find the distance between two different points. This I know can be accomplished with the great circle distance. http://www.meridianworlddata.com/Distance-calculation.asp Also, given a point and a distance I would...

### Sql 2008 query problem - which LatLong's exists in a geography polygon?

Hi folks, i have the following two tables:- GeoShapes GeoShapeId INT IDENTITY Name VARCHAR(100) ShapeFile GEOGRAPHY [ this is a closed Polygon of Lat/Longs ] CrimeLocations CrimeLocationId INT IDENTITY LatLong GEOGRAPHY [ this is a Lat/Long Point ] Now, i have around 10K GeoShape results and around 500CrimeLocations. I'm t...

### Tiger/Lines or shapefiles of USA states and cities?

Hi folks, i've been asked to generate some demographic reports (crime rates, birth/deaths, etc) based on state and cities for the USA. I have all the demographic data (provided by our client) but can't seem to find any places which have the boundaries (read: LAT/LONG's) of the USA States and their cities. Our data are Lat/Long points o...

### What's the best way to store co-ordinates (longitude/latitude, from Google Maps) in SQL Server?

I'm designing a table in SQL Server 2008 that will store a list of users and a Google Maps co-ordinate (longitude & latitude). Will I need two fields, or can it be done with 1? What's the best (or most common) data-type to use for storing this kind of data? ...

### Calculate distance in meters when you know longitude and latitude in java

Duplicate: Working with latitude/longitude values in Java How do I calculate distance between two latitude longitude points? I need to calculate the distance between two points given by two coordinates. The project I am working on is a Java-project, so Java-code will be great, but pseudo-code can also be given, then I can implement i...

### get the time offset from GMT from latitude longitude

Is there a way to estimate the offset from GMT (or time zone) from a latitude/longitude? I've seen geonames, but this would need to work long term and we don't really want to rely on a web service. It'd just be used for determining whether to display "today" or "tonight" when giving information to various users so it wouldn't need to b...

### How can I get latitude, longitude from x, y on a Mercator map (JPEG)?

I have a Mercator projection map as a JPEG and I would like to know how to relate a given x, y coordinate to its latitude and longitude. I've looked at the Gudermannian function but I honestly don't understand how to take that function and apply it. Namely, what input is it expecting? The implementation I found (JavaScript) seems to t...

### What datatype to use when storing latitude and longitude data in SQL databases?

When storing latitude or longitude data in an ANSI SQL compliant database, what datatype would be most appropriate? Should float be used, or decimal, or ...? I'm aware that Oracle, MySql, and SQL Server have added some special datatypes specifically for handling geo data, but I'm interested in how you would store the information in a "p...

### How do I find the lat/long that is x km east/west of a given lat/long?

Hi I have two given lat and lon points. For example, lets assume I have two positions (point_1 and point_2) at coordinates (lat1, lon1) and (lat2, lon2). I would like to calculate a third point, that is on the same latitude as that of point_2, but x km to the east or west of point_2. So the third point will have the same latitude a...

### address of location

how to get the address of location if i have the latitude longitude values of the location in iphone ...

### Google Earth KML with polygones with longitudes greater than 180deg?

Hi, I use polygones in kml files for displaying a rocket's flightpath from ground into orbit in google earth kml files. the problem is, that google earth can't handle longitued greater than 180deg, so when a rocket will circle more than ones around the globe the longitued values has to be recalculated. Is there a way in using longitude...

### How to get the longitude and lattitude from an address without showing map

Hi, I want to get latitude and longitude from address in one of my asp.net application, i know it s possible using google apis but i want to do it without showing google map. How can i do that? I also want to get distance between two pairs of latitude and longitude. Please guide me in that regards also. Thanks Pankaj ...

### How to check if a given longitude value is within any longitude range?

OK. This might be more of a math question but here goes. I have a longitude value, let's say X. And I want to know if X falls between any two longitude values. For example, if my X is 145 and the range is [21, -179]. The range is given by the Google Map API bounds and I can see on the google map that X does fall within that range. How...

### iPhone developing FOR jailbroken devices (not USING jailbroken devices!)

I would like to dig into developing for jailbroken devices, just to test what the device could do. I would like, for instance, to alter the ipod music based on geo-location, so i have to program a new daemon that runs in background and fetch gps informations at regular interlavs and then make something with them. Longitude, longitude, f...

### transform longitude latitude into meters

I need a function that maps gps positions to x/y values like this: getXYpos(GeoPoint relativeNullPoint, GeoPoint p){ deltaLatitude=p.latitude-relativeNullPoint.latitude; deltaLongitude=p.longitude-relativeNullPoint.longitude; ... resultX=latitude (or west to east) distance in meters from p to relativeNullPoint resultY=lon...

### Get PHP Timezone Name from Latitude and Longitude?

Is there a way get the timezone of a user by their latitude and longitude? And not just the offset, but the actual timezone they're in. Essentially, I'm searching for the polar opposite of DateTimeZone::getLocation which returns the latitude and longitude for a certain timezone. ...