Convert GPS Cordinates into Latitude Longitude? - google-maps

I have the GPS String in our database, its received from the one of the GPS device. String is-
4956.7306,N,03621.2701,E
I am not too sure, string in which format. And how this can be show in degree formate.
I want to get Lattitude and Longitude from the above string which I have.
I also try to plot this co-ordinates on google map search bar on Google Map, it's showing me the location and May be the lat-long is
22.7488455,75.8328085
I can't find the solution on the same , I want the latlong from the given GPS Co-Ordinates.
Please help me on this.
Thank you.

Isnt this just 49 56.7306,N,03 621.2701,E ?
If you paste this into Google Maps it points to southern Africa. Is that likely?

Related

Convert GPS coordinate to Google Maps

I´m building a PHP system where the user will type some GPS coordinates into a table and then the web system will pinpoint that position using google maps. In future we will develop an app for that, but for now the user has to type on the web page his coordinates.
My problem is regarding converting the cellular GPS coordinates to google maps format. We are using the cellular coordinates as decimal degrees DD.DDDD and the cellular show these values ie:
20.23223oS, 46.2737oO
But google maps accepts real numbers, as:
center: new google.maps.LatLng(20.23223, 46.2737)
With this code it does not show the location I can see on my cellular.
How can I convert the above coordinates to google maps ? Can someone has a PHP code for example ?
Thanks for helping.
Ith the location is in Brazil youn simply should remove the last two char for lat (oS) S= South and for lng (oO) O = West and change the sign (both are negative)
Make sure your conversion obtain an negative latitude, longitute (West) in some case if you don't speficy correctly google maps could convert automatically postive value

Get geofence of city in google map

Is there a function in google map that can get the geofence or the polygon area of city? For example i like to get the geofence Manila Philippines. I want to save the polygon Latitude and longitude of the city to MySql geometry column.
At the moment there is no such function. If you search for Manila, Philippines using geocoding you will get the location with the viewport and bounding box. However you won't get a polygon around the area.
One workaround would be to create your own polygons and save them to your database and then check if the lat/long is within those polygons.

How to get the center coordinate of the map(Ext.map) in sencha touch 2?

I use an Ext.Map to let a user choose a certain place and I want to get the coordinate (or the coordinate of the map center) that user chooses. Which method should I use? I can't find a proper one in the doc.
Check out my answer to similar question given here. This will give you an idea.
How Can I Get marker on current location in map in Sencha-Touch2.0
EDIT:
To obtain the position co-ordinates ( i.e latitude and longitude) from the textual address, you will need to use Google Maps Geocoding API
Geocoding is the process of converting addresses (like "1600
Amphitheatre Parkway, Mountain View, CA") into geographic coordinates
(like latitude 37.423021 and longitude -122.083739), which you can use
to place markers or position the map.

Get latitude and longitude points in Google Maps polyline

I want to draw Polylines with the Google Maps JavaScript API. Is there a tool that will help me get the latitude and longitude points by just clicking on the map, then exporting an array of lat-long pairs?
I imagine something like the personalized maps service (My Places) in Google Maps where you can click-snap on the roads to specify your own driving directions. I'd like to take that one step further. That is, to export an array of lat-long pairs that specify the roads traveled.
I know this answer might be a little late but today I was trying to figure out what I believe to be the same issue as this question. So, you can draw the points on the map then get that encoded polyline with Google's Interactive Polyline Encoder Utility then I recommend using Mapbox polyline utility to convert the overview_polyline to latitude and longitude pairs values. The latitude and longitude pairs are also on Googles Utility but it is a bit of a hassle to continuously copy each coordinate.
For more information about the Mapbox Polyline Utility process:
http://zevross.com/blog/2014/09/23/convert-google-directions-to-geojson-points-or-polylines/
And here is Google's Encoder Utility:
https://developers.google.com/maps/documentation/utilities/polylineutility
You can use the Drawing Tools library:
http://code.google.com/apis/maps/documentation/javascript/overlays.html#drawing_tools
which will give you an encoded polyline. You can use that to draw a line, or you can decode it to get the specific points using the geometry library:
http://code.google.com/apis/maps/documentation/javascript/geometry.html

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 Google Maps? or to "pixel coordinates" and back?
I found the answer to my question. The formulas for converting between the different coordinate systems can be found in the source code of this example on the Google Maps API website: http://code.google.com/apis/maps/documentation/javascript/examples/map-coordinates.html