latitude-longitude

Calculating bounding box a certain distance away from a lat/long coordinate in Java

Given a coordinate (lat, long), I am trying to calculate a square bounding box that is a given distance (e.g. 50km) away from the coordinate. So as input I have lat, long and distance and as output I would like two coordinates; one being the south-west (bottom-left) corner and one being the north-east (top-right) corner. I have seen a ...

Geocoding using Google Earth

Dear all, I would like to get a pair of coordinates (longitude, latitude) from a postal address. I am coding VBA in an Excel workbook. I can assume that Google Earth is installed and registered as COM server. Thus I have been looking for a way to use the Google Earth COM API to achieve this, however I have not managed to find anything....

How do you click on a map and have latitude and longitude fields in a form populated?

I have a form that a user needs to fill out where the location needs to be identified. I have latitude and longitude input fields on the form. I am also looking for the decimal lat and long. What I would like seems really simple. I just want to have a link that the user can click on that would popup a map (google or yahoo) and he cou...

SQL Query for Performing Radius Search based on Latitude Longitude

We have a restaurant table that has lat-long data for each row. We need to write a query that performs a search to find all restaurants within the provided radius e.g. 1 mile, 5 miles etc. We have the following query for this purpose: ***Parameters*** Longitude: -74.008680 Latitude: 40.711676 Radius: 1 mile ***Query*** SELECT * FR...

Overcoming GPS Inaccuracy for short distance

Hi I have a specific problem of accuracy of one GPS relative to another GPS over a distance of 30 - 50 metres apart. I suppose the radical change of thinking is that I dont need its location on the surface of the earth but its relative position to another point over this short distance. Can I achieve accuracy of <2cm? The maths is simple...

direction routing

Is there any link like this "http://maps.google.com/maps?daddr=San+Francisco,+CA&amp;saddr=cupertino"...where instead of address i can pass latitude longitude values of the places ...

How to set geographical coordinates on pictures for Google Android ?

Hi, I'm currently developping an application to manage my pictures on an Android phone. I developped an algorithm to classify the pictures based on the geographical coordinates (latitude, longitude) of each photo. To test my application on the android emulator in Eclipse, I manually imported a bunch of photos from my computer to the SD...

How to get the Latitude and Longitude of RMMarker (Cloudmade iphone API)

How do i get the latitude and longitude of a RMMarker? i can't see any method in the headers. I would be very thankfull fur any help. ...

Using the latitude and logitude gets the tile image with the location in it, But how to pinpoint that location?

I am given a latitude and longitude of a place. Then I apply global mercarator projection formula. Then I am able to get a square image(256*256) with the location in it. I am using all this to display a map made my images from a customised google map, in my iphone app. When zoom is high, even when we pinpoint randomly on that image, it ...

Dropping Multiple Pins On Map given Co-ordinates Mapkit iPhone

Hi, I have a query regarding Dropping Multiple Pins On Map when Co-ordinates are given using Mapkit in iPhone. Using Mapkit I am able to see the map at given latitude and longitude. I am also able to drop a pin on one particular location. However I have a array of lat and long and I want to show pins for them all. How to achieve this...

Algorithm for converting Latitude and Longitude to World Coordinates (OpenGL)

I have a set of latitude and longitude co-ordinates which are to be rendered in a GL program I'm working on. I have information such as the number of units per latitude and longitude degree (I have the co-ordinates in decimal degrees, eg, 27.1234) - for example, 15 units per longitude, and 10 units per latitude. However, I've had problem...

How can I determine the distance between two sets of lattitude/longitude coordinates?

I am trying to write something that will determine the distance between to sets of lat/lon coordinates. I am using the following code which I found on this site: public static double distance (double lat1, double lon1, double lat2, double lon2) { double lat1 = Convert.ToDouble(latitude); double lon1 = Convert.ToDouble(longitud...

c# Sunrise Sun set with Lat Long

Is there a way in C# to calculate given a Lat and Long when the sun will set and rise for a given day? Ian ...

Lat Long to Minutes and Seconds?

Google Maps gives me the Lat and Long of a location in decimal notation like this: 38.203655,-76.113281 How do I convert those to Coords (Degrees, Minutes , Seconds) ...

Receive a WOEID by Lat, Long with Yahoos API

Hi out there, i searched a while but found nothing, thats simular to my problem. i'm trying to use the YAHOO Weather API, for example: http://weather.yahooapis.com/forecastrss?w=4097 i don't know the WOEID in my case, but i got latitude and longitude points. so my question is: is there a way to get the WOEID of a place by using lat a...

How to import latitude/longitude data correctly into MySQL?

Hi, I've got a dataset of city names with their corresponding latitudes/longitudes that I've loaded into a MySQL table, like so: city_id | city_name | latitude DECIMAL(9,6) | longitude DECIMAL(9,6) Typical latitude/longitude coordinates might look like this: 54.284758 / 32.484736. However, I'm only getting values with a scale of 2 to...

How to project Lat/Lon coordinates on a panorama image?

Hi all, I have two sets of Latitude/Longitude coordinates. The first one is the coordinates of an equirectangular panorama picture. The second one of a point in sight. So it is on the picture. I need the x/y coordinates of the second point to draw it on the picture. In javascript. Example equirectangular panorama picture and applicat...

Calculate second point knowing the starting point and distance

Hi, using a Latitude and Longitude value (Point A), I am trying to calculate another Point B, X meters away bearing 0 radians from point A. Then display the point B Latitude and Longitude values. Example (Pseudo code): PointA_Lat = x.xxxx; PointA_Lng = x.xxxx; Distance = 3; //Meters bearing = 0; //radians new_PointB = PointA-Distance;...

CLLocationManager saying I moved 1200+ft when I'm still sitting in my chair.

I'm getting strange readings when using CLLocationManager. The Lat/Long reported are spot on, but the distance traveled is WAY off. I've implemented the following delegate method as so: .h: CLLocationManager *mLocationManager; CLLocation *mStartDistance; And .m: - (void) locationManager:(CLLocationManager *)manager didUp...

Using a C function in Objective-C (for iPhone)

'lo all. I am a self-described admitted noob in iPhone programming (having a much longer perl & web background -- 30 years)...but took the plunge last week and bought a couple of good books. After cramming and reading well over 1000 pages -- and understanding it pretty well, I am well on my way to a good first Native iPhone app. My pro...