I want to make a windows phone app that gets the users location and then checks wether their location is within a certain area (a mapped out polygon or inside a square of coordinates) and then deliver information based on if they are within that area or not. This is referred to as geofencing. Is their an API out their on an example of this that makes this very easy? All I want to do is map out a location and see if the users coordinates are within that.
Thanks
Please use MovementThreshold property in GeoCoordinateWatcher. here please mention the distance in meter. So if the corresponding distance crossed you will get notification in Position_Changed Callback.
Thanks
IF you're going to show the current location in a map, then you could simply go for the guidance provided by msdn here.
Or else if you just wanted to use the `Geo Coordinates, have a look at this.
For you to continue with the GeoFencing, this would be helpful Setting up a geofence
Hope it helps!
Related
I'm working on a google map app to show the street direction for multiple given spots. I notice that if any of the spots is a bit special (for example an island) that Google does not know how to get there, it will not show the direction for the entire trip.
I wonder if there is away to feed a custom route, or at least tell Google to draw a straight line when it encounters such spot so that the whole trip direction can be shown somehow?
If that's not possible, I wonder if there is any suggestion to resolve this particular problem.
I am creating a routing web app that contains markers for low bridges, I would like to alert the user that there is a low bridge on the route they have selected. I am aware it is not possible to create avoid points, although Google already have avoid for tolls and highways. Any help much be greatly appreciated.
You may use google.maps.geometry.poly.isLocationOnEdge
Call it for the position of each marker.
I used RouteBoxer to create boxes along the route and to check if the point was within in the boxes. Box sizes can be set to increase speed (bigger boxes means less boxes check) / accuracy (bigger boxes means that less accuracy).
I have a need to develop a site that allows its users to draw/plot a route with the mouse on a Google map. Once this done I need to send the coordinates of the route along with some other form data back to the client.
I have no idea how to achieve this or if any plugins/libraries exist that will make the process simpler. Can anyone point me in the right direction? Many thanks in advance.
In typical fashion the next link I looked at after posting my request was this http://googlemapsapi.blogspot.co.uk/2008/05/love-my-maps-use-its-line-and-shape.html which answers my question.
I'm building an application where user-submitted posts are placed via their location as markers on a Google Map. The users are currently able to view the markers/posts on a map in relation to their current location.
What I'm aiming to do is allow the user to change the location of the map so that users can see the markers/posts in relation to another address, specifically via a form that allows them to enter an address and change the location of the map.
I found a YouTube video illustrating a pretty close approximation of what I'm aiming to do, but it unfortunately provides no code or instructions (http://www.youtube.com/watch?v=4uyIawlsvzU).
Is there a way to efficiently wrap an existing Google Map and the existing markers into a form such as this? I've searched for a solution but can't seem to find the proper way to achieve this. Many thanks for any feedback.
You need to search for LatLng by user specified address and to display it. I see not problems at all :)
Study Google Geocoding API for this (seems best solution for your case) and this example
lovely to be here.
Quick question.
If you click on the following link: http://maps.google.com/maps?q=53.838061,-1.604025
It will take you to Google Maps and you can see a single pin on the map. This is done by sending two parameters via the URL which, in this case are: 53.838061,-1.604025. These are the Latitude and Longitude coordinates of one location.
What I wish to have is basically two sets of coordinates so I can see two pins on the map.
Does anyone know how to do this?
Any help is greatly appreciated.
Thank You.
I think you will have to use this api: http://code.google.com/apis/maps/documentation/staticmaps/#Markers
There are also some examples there. I hope this helps.
Am taking that you need to know the co-ordinates from the maps page and not via the api.
Right click on the spot, in the menu select "whats here", maps inserts a marker on the spot, coordinates are on the search text box and also on mouse hover on the marker.