coordinates

GPS coordinates: 1km square around a point

此生再无相见时 提交于 2019-12-03 03:17:56
问题 I was hoping someone out there could provide me with an equation to calculate a 1km square (X from a.aaa to b.bbb, Y from c.ccc to c.ccc) around a given point, say lat = 53.38292839 and lon = -6.1843984 ? I'll also need 2km, 5km and 10km squares around a point. I've tried googling around to no avail... It's late at night and was hoping someone might have quick fix handy before I delve into the trigonometry... I'll be running all this in Javascript, although any language is fine. 回答1: If the

Importing CSV File to Google Maps

余生颓废 提交于 2019-12-03 03:12:42
I have an quite big CSv File I want to have in Google Maps or just on a map. These are just coordinates but I have 600.000 of them.. Do you have any Idea how I can do this? I've added an screenshot from XTabulator below: The easiest way to do this is generate a KML file (see http://code.google.com/apis/kml/articles/csvtokml.html for a possible solution). You can then open that up in Google Maps by storing it online and linking to it from Google Maps as described at http://code.google.com/apis/kml/documentation/whatiskml.html EDIT: http://www.gpsbabel.org/ may let you do it without coding. We

How do I convert these coordinates to coordinates readable by Google Maps?

…衆ロ難τιáo~ 提交于 2019-12-03 03:07:00
Take a look at the map coordinates on this page . This is linked in from Wikipedia and the coordinates are passed the query string. I'm not sure of the actual terms for this but How do I convert the coordinates? They look like this: 37° 14′ 6″ N, 115° 48′ 40″ W I would like them to look like this: 37.235, -115.811111 , which is a format readable by Google maps, as seen in this example . How do I do this in PHP, and what are the two different types of coordinates called? The original format is in hours, minutes, seconds format. To convert to decimal, do: D = H + M/60 + s/3600 So in your example

Convert address to coordinates swift

徘徊边缘 提交于 2019-12-03 02:51:56
问题 How can I convert a String address to CLLocation coordinates with Swift? I have no code yet, I looked for a solution but I didn't find anyone yet. Thanks. 回答1: This is pretty easy. let address = "1 Infinite Loop, Cupertino, CA 95014" let geoCoder = CLGeocoder() geoCoder.geocodeAddressString(address) { (placemarks, error) in guard let placemarks = placemarks, let location = placemarks.first?.location else { // handle no location found return } // Use your location } You will also need to add

calculating a gps coordinate given a point, bearing and distance

会有一股神秘感。 提交于 2019-12-03 00:48:24
I have a problem which draws my back in some project for some time now. Im basically looking to trap a polygon using x,y points drawn by some script ive written. lat1,lon1 are the center gps cords of the polygon and im looking for its surrounding polygon. here is a part of my code in python: def getcords(lat1,lon1,dr,bearing): lat2=asin(sin(lat1)*cos(dr)+cos(lat1)*sin(dr)*cos(bearing)) lon2=lon1+atan2(sin(bearing)*sin(dr)*cos(lat1),cos(dr)-sin(lat1)*sin(lat2)) return [lat2,lon2] my input goes like this: lat1,lon1 - are given in decimal degrees. -dr is the angular computed by dividing the

Finding the coordinates on the image knowing the center point and slope of a line

匆匆过客 提交于 2019-12-02 23:41:29
问题 Please help me in finding the coordinates of the point marked with green dots in the attached image. The slope of the line is known and the coordinates of the center are known for an image. I want to write a code in MATLAB. Please give me ideas for the same. The image consists of the center points whose coordinates are known, and green dots coordinates are to be determined knowing the slope of the line passing through the center point. 回答1: I created vector of coordinates that passes center

Storing and Querying GPS Coordinates Effectively

半世苍凉 提交于 2019-12-02 21:06:35
I want to create a large database of GPS coordinates that can be queried by saying "Return all coordinates that are within 'n' metres of [this coordinate]". I need it to be as efficient as possible so looping through all the coordinates in the database and calculating whether a coordinate is within 'n' metres wouldn't be a desired solution. Is there an easier solution? Thanks I typically do this sort of query using lat/lon. Using spherical geometry, you can put a bounding box around a specific point. For example, say you have a point (X,Y) that you want all coordinates within 1 mile

SpriteKit Coordinates differ between iPad and iPhone

牧云@^-^@ 提交于 2019-12-02 19:34:41
问题 I have a very simple SpriteKit scene that is not behaving like I would expect. It is a universal app and the code that I am using to draw a single red square in the scene is as follows: let redSquare = SKSpriteNode(color: UIColor .redColor(), size: CGSizeMake(100.0, 100.0)) redSquare.anchorPoint = CGPointMake(0.0, 0.0) redSquare.position = CGPointMake(1.0, 1.0) addChild(redSquare) This code is in the GameScene didMoveToView method of the default app that xCode creates for you when you select

How to get GPS Coordinates from all the users of my application?

大憨熊 提交于 2019-12-02 18:55:57
Explanation/Scenario: I am developing a app that needs to get in real-time(like 3sec's update) the location of all users of mine app, and these users knowing that, too, will see the another users location, in a map, for example: This location, needs to be in real-time, because all of the users have access to the map, they need to know where are the users of the app, in the exact moment, to find them selves. Question: What i need to do to make my application get in real time the location of all of the users in gps coordinates( for later use on the map )? Obs: I am not asking a full application,

Validate latitude and longitude

£可爱£侵袭症+ 提交于 2019-12-02 17:57:16
I want to validate the latitude and longitude. Right now, I check just so that the value is not empty, but I want a validation to check that it is a valid latidue or longitude. How do I do that? My property looks like this: public string Lat { get { return this._lat; } set { base.ValidationErrors.Remove("Lat"); if (String.IsNullOrWhiteSpace(value)) { this.ValidationErrors.Add("Lat", strings.Positions_Lat_Empty); } this._lat = value != null ? value.Trim() : null; } } public string Lng { get { return this._lng; } set { base.ValidationErrors.Remove("Lng"); if (String.IsNullOrWhiteSpace(value)) {