latitude-longitude

Post status update with location

那年仲夏 提交于 2019-12-31 01:50:08
问题 When you post a regular status update to Facebook, it tracks your current location and gives the (near) city next to the time. I.e.: May 24 near New York City, New York . Please note that this is not a check-in. I'm trying to do the same, without searching for a page (place) id and checkin. I've tried posting the coordinates with latitute and longitute, but it doesn't show the near city. https://graph.facebook.com/me/feed message=test coordinates={"latitude": 37.4163458217, "longitude": -122

Google Maps API a.lat is not a function error

半城伤御伤魂 提交于 2019-12-30 10:37:21
问题 I was creating a code that can coordinate data from CSV file by using a split as the separator, and will calculate the distance between two input coordinates. But the result always shows the error a.lat is not a function. I already surf the web about this particular error type and can't seem to find the correct solution, can anyone please help me with this error. Here is my coordinate example : -6.168454914420734, 106.7574467 -6.16897225004169, 106.7570443 And here is my code : <!DOCTYPE html

Get screen coordinates by specific location and longitude (android)

我与影子孤独终老i 提交于 2019-12-30 04:32:29
问题 I have an application of augmented reality in which I have stored information such us metro, gas stations, places of interest, etc. with the corresponding latitude and longitude. Now, according to the orientation of the device, I would show a marker for each site in the camera view of the device. Similar to Layar and Wikitude. It takes three days searching without stopping and have not found anyone to explain how to solve this problem. 回答1: Since information on this topic is very sparse, and

Given a lat/lng coordinate, calculate the min and max lat/lng values for a 10 km area

♀尐吖头ヾ 提交于 2019-12-30 03:23:05
问题 Lets say I have a lat lng coordinate and I want to place that at the center of a square that is 10km wide and then get the minimum lat/lng and maximum lat/lng. Is there an easy way to do this that already exists? 回答1: If it doesn't need to be exact, it is pretty easy: For the latitude, 1 km is 0.009 degrees (follows from the original definition of meter). Since your square is 5 km around the center, you just need to add and subtract 0.045 degrees from the center point. For the longitude, it

Determine longitudes and latitudes within a range

∥☆過路亽.° 提交于 2019-12-30 02:36:13
问题 I have locations in my database. A location has the attributes latitude and longitude (taken from google maps, example: 48.809591). Is there any query that could help me retrieve the locations within a range of another location? Example: I have the location A with latitude = 48.809591, and longitude = 2.124009 and want to retrieve all location objects in my database that are within 5 miles of location A My first thought was to retrieve the locations in a square where location.latitude < A

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

风流意气都作罢 提交于 2019-12-29 06:26:10
问题 I want to use the Google Weather API - by passing lat and long values. I am storing these values, however it seems Google needs these values in different format. 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 But when I use these data for Google API, it does not work: See: www.google.com/ig/api?weather=,,,45.5,-73.583 Any help appreciated. I would prefer to use the Google

proper/best type for storing latitude and longitude

ぐ巨炮叔叔 提交于 2019-12-29 02:33:31
问题 In a system level programming language like C, C++ or D, what is the best type/encoding for storing latitude and longitude? The options I see are: IEEE-754 FP as degrees or radians degrees or radians stored as a fixed point value in an 32 or 64 bit int mapping of an integer range to the degree range: -> deg = (360/2^32)*val degrees, minutes, seconds and fractional seconds stored as bit fields in an int a struct of some kind. The easy solution (FP) has the major down side that it has highly

Converting from Decimal degrees to Degrees Minutes Seconds tenths.

大憨熊 提交于 2019-12-28 13:37:24
问题 Is there some sample conversion code in C# to go from decimal degrees to Degrees, Minutes, Seconds, Tenth? 回答1: I think this should do it. double decimal_degrees; // set decimal_degrees value here double minutes = (decimal_degrees - Math.Floor(decimal_degrees)) * 60.0; double seconds = (minutes - Math.Floor(minutes)) * 60.0; double tenths = (seconds - Math.Floor(seconds)) * 10.0; // get rid of fractional part minutes = Math.Floor(minutes); seconds = Math.Floor(seconds); tenths = Math.Floor

How to identify timezone from longitude and latitude in iOS

房东的猫 提交于 2019-12-28 06:44:07
问题 How can I find out which NSTimeZone a given longitude and latitude fall in? 回答1: I have tried APTimeZones library. In my case I needed Timezone as well as country name from the lat long of a particular city. I went through the library to know how it works. It actually has a file in JSON format which has all the timezones along with their corresponding lat longs. it takes the lat long as input and loops through this JSON file comparing the distances of all the timezone's lat long from the

Getting GPS data from an image's EXIF in C#

百般思念 提交于 2019-12-28 03:30:11
问题 I am developing a system that allows for an image to be uploaded to a server using ASP.NET C#. I am processing the image and all is working great. I have managed to find a method that reads the Date Created EXIF data and am parsing it as a DateTime. That works great too. I am now trying to read GPS data from the EXIF. I am wanting to capture the Latitude and Longitude figures. I am using this list as a reference to the EXIF data (using the numbers for the property items) http://www.exiv2.org