I'm using Google Places API to get a geolocation of the place. I get the points and are able to place it correctly. Searching for the place below the marker is placed in the middle of the building.
https://www.google.com/maps/place/C.D.E.-Centro+de+Diagnostico+de+Elvas,+Lda/#38.8799378,-7.1615604,20.05z/data=!4m5!3m4!1s0xd171c6f3bfd342f:0xe99e4c47a055bae3!8m2!3d38.8799892!4d-7.161476
Now what I'm looking for is to place the marker on the address of the building (basically the door) which would be here:
https://www.google.com/maps/place/R.+de+S%C3%A3o+Louren%C3%A7o+17,+7350-026+Elvas/#38.8800482,-7.1619366,19z/data=!3m1!4b1!4m5!3m4!1s0xd171c691f19dac7:0xe21f4232dc70c067!8m2!3d38.8800482!4d-7.1613894
The only way of doing this right now is to get the place, get the place detail and then, using the address making another call for the new coordinate.
Is this the only way to get the geolocation of a place's address?
Reverse geocoding is your best friend!
Input your address like so, taking out the spaces.
https://maps.googleapis.com/maps/api/geocode/json?address=R.deSãoLourenço17,7350-026,Elvas&key=API_KEY
Then access the coordinates via the geometry field. Hope this helps.
Related
as the title stated, I'm trying to develop a GIS (geographic information system) webpage, whereby the user (admin) can input location and picture, and the marker will be shown/popup in the main page's map. I'm using Laravel framework and Leaflet for the map to implement the GIS. I manage to show the map without any marker yet. As the admin want to add the location to show the marker in the main page's map, normally what i've seen is that you need to include the Lat/Long for that specific location. It is true that including Lat/Long can make the marker more accurate to pin point the exact location, and I think it is necessary thing to include, as it is the main source of information to the system for pin point the location. But as a user, sometimes they not as diligent as we thought, the problem will occur if they left the lat/long to 0, because they are too lazy to search for the lat/long, thus making the initial goal which is to show marker in the main map fail.
Is there a way to make the Lat/Long automatically filled as the user type their location information? Or is there any other technologies for the GIS that I could implement/use?
Thank you.
If I'm not mistaken, then you are asking about this like
https://developers.google.com/maps/documentation/geocoding/overview
Aoa,
I am working on a web application where a shop vendor must put a latitude and longitude of his/her shop.
It is easy to get if he/she is using application from the shop. But if he/she is somewhere else i want to show a map option to the vendor where he/she could search his/her shop point it. And I could get co-ordinates from that marker position.
I have studied google map api found a lot of useful things but couldn't understand how to achieve this as I am unable to find anything regarding getting co-ordinates from the marker.
It will be great if anybody could guide me that where should I look or what should I study to solve my issue.
Thanks in advance..
You can use the Maps JavaScript API to put a marker every time a certain point in the map was clicked then get the coordinates of the point and display it so that your user can directly get the exact coordinate of the marker. Here is a simple code I made to demonstrate this.
In the code, I used a listener to the map to check for every click on the map and put a marker on it. It will then update the label display with the coordinate of the marker.
map.addListener('click', function(event) {
addMarker(event.latLng);
document.getElementById("text").innerHTML = event.latLng.lat() + ',' + event.latLng.lng();
});
Hope this helps!
Right-click on the red marker on Google Maps after searching the location, select "what's here?" and you will see the coordinates in a pop-up.
Does anyone know how to interact with google maps street view to retrieve a batch number of images (~200) along the street view from point A to point B? I could always manually go and move along the street and "print screen." but this is time consuming. I work for city government, and we're trying to get more info on our streets.
You can take use of the Google Street View Image API, which gives you the ability to link to a picture of the Streetview directly. For example,
this link:
https://maps.googleapis.com/maps/api/streetview?size=640x640&location=40.720032,-73.988354&fov=90&heading=235&pitch=10
links to this image:
But there are 2 problems about this Google Street View Image API:
1) It only support up to 640x640, no bigger image for the free account.
2) I think the ToS requires the data be publicly accessible if you are using it for free.
You can solve these by applying to the Google Maps for Work, which I might able to refer you and get discounts.
I need to draw multiple routes from my position to a predefined location on a Bing Map.
But I'm new to WP7, can anybody please tell me the step
And will that answer be sufficient to draw the routes? Thanks.
Please see Calculating a Route Using Bing Maps SOAP Services article and esspecially Add code to calculate and display a route sample. Thise example uses MapPolyline class to draw route line. You can add as many such lines as you wish.
Alternatively, please see Bing Maps for Games with Pathfinding sample and especially RouteRender class. This is more custom approach with XNA.
Say I am in a location.
Near that location there are regions and famous buildings
like region, kepaduri, wisconsin street, etc.
Is there a way to query google and get info what are the close things near me?
Basically I am making an IPhone apps and I want to populate the autocomplete
If you're looking for a webservice where you send coordinates and it returns a list of "regions" that are nearby I don't beleive Google provides that, and if they did, it's got nothing to do with MKMapView.