Convert GPS coordinate to Google Maps - 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

Related

Convert GPS Cordinates into Latitude Longitude?

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?

Finding Distance in KM

Hello I have a laravel and android app. Latitudes and Longitudes are posted from the android app to the server.
Now I am supposed to find the distance in km between two points given that the latitudes and longitudes for both location have been provided.
I tried to google it and found this: mjaschen/phpgeo which seems to be able to do that.
However a modification has been now made to our system where I have been asked to find the distance between those two locations by road, e.g. route length.
I have been told that this is possible with google maps. However I am not aware of any google map package or api for php/laravel.
Is there a google map package that can help me do this and is this even possible? If yes then how would I go about implementing this?
Summary: Finding the distance by road between two locations in kilometers assuming coordinates have been supplied for each of those locations.

Plot coordinates near a given set of coordinates on Google maps

This is the scenario...
I have a set of lat/long data stored in a db table[id, lat, long, location]. I'm using geo-location to get a user's current physical location(lat and long). When this user accesses the app, allows his location to be shared, I want to get those coordinates that are around his current coordinates, and plot them on a Google Map.
How can this be done?
Example: I have the coordinates for hotels in a city stored in my DB table. When a user visits this city and accesses my app, I want to get from my DB and plot on map only those coordinates that are around him in a certain radius.
Note: I'm using PHP for server side stuff.
Any help is appreciated!
You describe a store locator: finding POIs within a radius around a particular point. A store locator finds POIs within a radius around a location. The details in Google's example are different (you find the centre point via browser geolocation and have a fairly small radius) but the principle is exactly the same.
Google's article: developers.google.com/maps/articles/phpsqlajax_v3

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

Google maps and Google earth application

I want to develop an application to find the value of a property based on some constants(such as the distance from the shore,the width of the road in frond of the property,the neighborhood that is located to etc) -constants that i will have to insert to that application (i guess with some tool that can make kml files with point,lines,areas and geocoding information) and variables which i will have τo take from the user through a series of forms.To succesfully calculate a value i need to make spatial querys (such as which is the distance of a point from that polygon?)
Is it possible to develop such an app with google maps or google earth or i have to develop with the use of an GIS(ESRI,Manifold etc).Also which is the difference between the possibilities of the resulting apps with maps and earth?
Thank you
Bill Chadwick has some Javascript for Google Maps that calculates the distance of a point from a poly. See the the bottom of this page.