latitude-longitude

javascript: lat/lon, lat1/lon1, bearing, distance to x,y screen coordinates?

Hi all, how to project a lat/lon hotspot onto an 360x180 degree panorama image? Using javascript? Real data: lat/lon in decimal degrees and altitude in meters: Camera coordinates: 49.994249, 8.66539, 2 Hotspot coordinates: 49.994163, 8.665388, 2 Distance camera to hotspot in meters: 9.55 Compass bearing camera to hotspot in degrees ...

Google's GeoCode Convert City, STATE into Latitude Longitude

The following code works asynchronously. I only have it set up to convert a City, State into latitude and longitude. That value is then alerted. How can I write a function that actually returns these values? var map; var geocoder; function initialize() { geocoder = new GClientGeocoder(); } // addAddressToMap() is called when th...

latitude and longitude bounding box for C#?

I just want to find a straightforward, C# class that takes in a starting latitude and longitude and a distance and finds the bounding box (max lat, min lat, max lon, min lon). There are other, similar, questions here on SO but none of them really answer this and the ones that do are not in C#. Help. ...

How to store lots of longitudes/latitudes on an Android device

Hi I am looking into writing an Android app that has a database of approximately 2000 longitudes and latitudes which are effectively hard coded. I assume that once my app is installed, I can put this information into the SQLite database, but how should I distribute this information when the app is downloaded? One option I thought of w...

How to calculate distance between latitude and longitude with a radius in Zend Lucene ?

Hi, I don't know if it's possible, but I would like to make a search on latitude, longitude, and a radius. I mean i'd like to get the distance between my reference latitude and longitude, compare it with all my stored latitude and longitude and if it's lesser than the radius, take it. Is it possible to do this whith Lucene (only if it's...

Searching for surrounding suburbs based on latitude & longitude using Objective C

I need to identify items of interest nearby to a particular latitude/longitude. I have two sets of objects stored in Core Data: PostalArea - latitude - longitude - postcode Store - name - latitude - longitude I need to be able to retrieve a record from the PostalArea table, and then find stores which are closeby. Most of the examp...

Why can't i give these lat and long values to google map?

I am using google maps but i can't get map marker for these kind of lat and long values. Tirunelveli Latitude:8.44 N Longitude:77.44 E. How to convert these to values which can be used by google maps? I used this but there is no place in the map view area, function initialize() { if (GBrowserIsCompatible()) { var m...

Given a latitude / longitude to a certain number of decimal places, how to tell the area covered (in metres)?

If i have a position specified in latitude and longitude, then it can cover a box, depending on how many digits of accuracy are in the position. For example, given a position of 55.0° N, 3.0° W (i.e. to 1 decimal place), and assuming a truncation (as opposed to rounding), this could cover anything that's 55.01° to 55.09°. This would co...

Get latitude and longitude based on location name [google maps api]

I have a textbox in my page which gets a location name and button with text getLat&Long. Now on clicking my button i have to show an alert of latitiude and longitude of the location in the textbox. Any suugestion. ...

lat/lon conversion to x/y-coordinates

Hi, I have a openstreetmap image. left upper corner is lat: 80 lon: -169 and right lower corner is lat:-56 lon: 190 The image has the width: 2618 and the height: 1513 How do I convert given lat/lon-coordinates to the pictures x/y-coordinates? I tried it by myself, but couldn't figure out how to convert the coordinates. I hope someone...

How to update latitude/longitude of the center of a Mapview whenever map is moved

What is the best way to constantly update the center of a mapView's latitude and longitude in an Android application? I need to display it on a label that is shown on top of the map. I know you can call MapViewObject.getMapCenter() to get a GeoPoint of the center of the map, but where would I place that code so that it is called every ...

Get Lat and Long, Android

Hi, I need lat and lng of a point on a google map. It has to look like that 8.53171539306641 for example but when I go to maps.google.com I get just 8.532493 There is a possibility to receive lat and lng that have such a length 8.53171539306641 but I do not remember how ...

Get results from mysql based on latitude longidude

Hi all, I have a mysql Database and 2 tables let's say clients and schools. Now each table has columns latitude and longitude. And I need do make a SELECT for example from second table where schools are in a given radius of one record from first table. Calculations should be made based on latitude and longitude. PS: I am using PHP. ...

How to get GLatLng object from address string in advance in google maps?

Hi, I want to get latlng object in google maps in advance. Basically my json result is returning array of address which I need to convert to glatlng to use for markers. But if i will use GeoCoder object then it will send asynch request which I don't want. Is there any way other than GeoCoder object to convert an address string to GLatL...

Finding a set of coordinates within a certain range from latitude longitide

I am working on a project in javascript involving google maps. The goal is to figure out 16-20 coordinate points within n kilometers from a set of latitude longitude coordinates such that the 16 points if connected will form a circle around the original coordinates. The end goal is to make it so I can figure out coordinates to plot and...

Determine distance from coastline in Matlab

In MATLAB, I have an array of latitude and longitude pairs that represents locations in the United States. I need to determine the distance to the nearest coastline. I think MATLAB has a built in database of lat/lon points of the United States. How do I access it and use it? Also any suggestions on how to efficiently determine the di...

MySQL User Defined Function for Latitude Longitude Syntax

I have created a MySQL function to determine if a set of latitude and longitude coordinates are within a certain range of another set of latitude and longitude coordinates. However, the function is giving me a syntax error so I cannot test to see if it is working properly. Any help figuring out what is causing the error would be greatly ...

How to Write a background service to get latitude and longitude

Hi , I need to write a background service to get latitude and longitude values. I have an android application in which it has to find where the user is currently.So i seemed of getting the values of latitude and longitude values. Is there any way programatically to get the values from the system services or even program giving the valu...

If I have all of the Google Geocoding data for multiple addresses, how do I calculate their proximity?

I have multiple addresses recorded in my database and I've used the Google Geocoding service to get their longitude, latitude, etc. What do I need to do to calculate the proximity of one address from another in miles? Ideally I want to show an entry and then say below it: "The following recorded addresses are close by." ...

Order table by proximity to specific latitude/longitude (using MySQL+PHP)

MySQL (table) id | url | lat | lng ---------------------------------- 1 | x | 44.339565 | -101.337891 ---------------------------------- 2 | y | 44.150681 | -101.074219 ---------------------------------- 3 | z | 43.897892 | -100.634766 what I want to do now is order the list according to their proximity to (43.834527...