latitude-longitude

Cell-ID database for India

Is there any well defined CELLID database for India, Google have the CELL-ID database but they have not yet provided access. i have tried opencellid but they have limited database for india. ...

Using Google Weather API with Lat and Lon - how to format?

I am wanting to use the Google Weather API - by passing lat and long values. However it seems Google is needing these formatted differently to the values I have stored. i.e. For the town of McTavish I have values of 45.5 and -73.583 This works here: http://api.wunderground.com/auto/wui/geo/WXCurrentObXML/index.xml?query=45.5,-73.583 B...

Is there an API convert long/lat to city,country rather than Google API

Hi All, Is there an API convert long/lat to city,country rather than Google API? I found that geonames does not give the city. Thanks, Ling ...

Relative Position in PHP between 2 points (Lat/Long)

I have a database of airports with Latitude and Longitude for each point. I want to run a PHP script to find all airports that are nearby a given airport, with their distance and relative direction. I.e. for Airport KLDJ (40-37-02.810N 074-14-40.539W) Airport Nearby KJFK - John F Kennedy Airport (21.2 nm NE) (40-38-23.104N 073-46...

Polygon area calculation using Latitude and Longitude generated from Cartesian space and a world file.

Given a series of GPS coordinate pairs, I need to calculate the area of a polygon (n-gon). This is relatively small (not larger than 50,000 sqft). The geocodes are created by applying an affine transform with data from a world file. I have tried to use a two step approach by doing converting the geocodes to cartesian coordinates: dou...

Is there an algorithm for determining how much daylight there is?

Is there a function/algorithm that allows me to input the latitude and the approximate orbital position of the earth in so that I can determine how long the sun is up? IE during the winter it would show that the sun is only up a few hours in the far north hemisphere. I did some basic Google search and didn't find much so I was thinking...

Distance between Long Lat coord using SQLITE

I've got an sqlite db with long and lat of shops and I want to find out the closest 5 shops. So the following code works fine. if(sqlite3_prepare_v2(db, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) { while (sqlite3_step(compiledStatement) == SQLITE_ROW) { NSString *branchStr = [NSString stringWithUTF8Str...

How to implement geo-based data store and computation?

Well, let me explain this briefly: 1.I want to build a website that provides location based services, like http://fireeagle.yahoo.net/ . 2.I guess most of these services have something do with longitude and latitude. 3.Is there any particular database/datastore/data structures fit well for such apps? I mean easy to store longitude, la...

calculate the distance between the place where I am taking photo and the object I am taking.

I can get the latitude and longitude where I am taking photo. I can also get the Exif information of the photo I took. I want to know how can I calculate the distance between the place I am taking photo and the object I am taking by above informations? give me some constructive opinions. thanks very much. ...

Calculating co-ordinate of a point on a path given a distance

I'm working on a project that surveys the condition of a road or highway using a calibrated trip computer connected to a rugged-PC. An operator keys in defect codes as they travel along a pre-defined route. I need to show an indicator on the map screen that shows the vehicles current position, taking into account the distance data from...

Java: Calculate distance between a large number of locations and performance

I'm creating an application that will tell a user how far away a large number of points are from their current position. Each point has a longitude and latitude. I've read over this article http://www.movable-type.co.uk/scripts/latlong.html and seen this post http://stackoverflow.com/questions/837872/calculate-distance-in-meters-when-...

Nerddinner inserting longitude and latitude to database MVC

i am facing a problem in the nerddinner, what i am facing: in the DinnerForm.ascx there is a javascript code $(document).ready(function () { NerdDinner.EnableMapMouseClickCallback(); $("#Dinner_Address").blur(function (evt) { //If it's time to look for an address, // clear out the Lat and Lon ...

Computing latitude longitude center point of a Polygon in PHP

I have a set of points (stored as lat/lon) for a polygon, I want to compute the lat/lon center point of the polygon in PHP. Basically to do the same thing as the getCenter() function in Google Maps LatLngBounds. Any ideas on how I can achieve this? ...

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...

Convert to valid lat/long codes

Hi all, My source gave me the following lat and long codes from Amsterdam. But I can't get them working with Google Maps. Is there some logic behind it, or some kind of algorithm to convert them? 5,237,300,539,279,090 | 489,290,714,263,916 Should be something like this: 52.378268, 4.888859 How can one tell where the dots should be...

How to convert latitude and longitude to world coordinates à la Google Maps

I am designing an application in C++ to view and edit a map of a fictional planet. How it works will be similar to Google Maps. I would like the user to be able to see their current position in latitude/longitude and world coordinates on the GUI. How can I convert a latitude and longitude values to "world coordinates" and back, as in Go...

Point of latitude and longitude inside a complex spherical polygon

Question What R package has a function that can determine if a coordinate is within a closed, complex spherical polygon (i.e., a point inside a polygon on Earth's surface)? Related Links JPL: Formulae and explanation Java: Spheres software SO: Point inside or outside polygon SO: Point straddling the meridian SO: Point in polygon hit ...

select restaurant table entries within a certain distance from current location using php

i have a database table with a list of restaurants including their names, latitudes, and longitudes. i would like to select all the restaurants that are within a certain distance from my current location. the current location is determined in the php file (right now i'm just using a static lat & lng). i found code for calculating the dis...

City/Country text field validation

I need to keep track of the users lat/lng/city/country for my application with the following two requirements: 1) Get the users lat/lng/city/country automatically. (This is easy, I can use the ip or if they have a browser that supports geolocation, even better). 2) The user is allowed to customize this location (maybe the ip address lo...

Convert Latitude/Longitude to decimal degree value

I have lat/long value in this format 5,141,456,024 -231,146,115 I want to convert these values in to decimal degree like 51.3758010864258 -2.35989999771118 I have 25K records which I want to convert into decimal degree Thanks ...