Select on Map control - dictionary

I am doing a Windows Phone app that displays a map and a scaled ellipse, and everything is working well except that I cannot select a location on the map like I can in the standard MapTask app. Am I missing something? I would like the user to select a point on the map and start navigation to that point
Or is there a way to launch the MapTask app and draw the ellipse on that?

If it is Windows Phone 8 maps that you are using then I would have plenty of examples at GitHub for it: https://github.com/nokia-developer/maps-samples
Same examples for Windows phone 7 at at: http://developer.nokia.com/community/wiki/Maps_Examples_for_Windows_phone
Basically there is no automated way on getting the location, thus, if you really want to have a geocoordinate for a location uses selected, then you:
1. Need to catch the user click on the map (check the interaction examples)
2. Get the geocoordinate for the clicked pixel of the map (there is pixel to geo function implemented with maps control)
For Navigation, if you means showing a route with the map, then check the routing examples.
If you really meant navigation, then for windows phone 7 I would not have any answers, but for Windows phone 8 there is the HERE launchers documented at: http://developer.nokia.com/resources/library/Lumia/maps-and-navigation/here-launchers.html
with here launchers you could use Drive or Walk navigation.

Related

Google Maps Plotting location on railway track

I am working on a GSM based tracking device . i have successfully able to plot the approximate location on google maps using Gmap.net library for windows application and google maps api for android application.I want to mainly do the tracking of the Rail coach .with my current device i gets the approximate location near the railway track.I want to shift that Location /Maker on the near by Rail track.i need help and suggestions on how to achieve this task.please help.
Afaik the gmap.net library does not provide any feature around pinning tracking data, so I guess some manual work might be necessary.
The naive approach is to map your track on your own, google maps etc. is fine. I fact I've used gmap.net once itself to create exactly that.
Then all you need to do is some math (useful key word here is 'shortest path'), to locate the closest matching tracking point and use interpolation to distinguish your anticipated position on the track. You can also add some plausibility checks to speed up the whole process such as "knowing" where on your track you've already been.
I've got experience in real-time tracking for TV events and can go in deeper detail if you want.

invoke Apple Watch maps app for turn by turn directions

I'm working on a watch app that will amongst other things need to get a person from point A to point B.
one option is to delegate the maps navigation work back to the iPhone and handle messaging updates between the watch and phone etc.
however does anyone know if its possible to simply invoke/launch the Apple Maps app (on the watch) directly from my own watch app and pass the start/end coordinate details -- to automatically initiate turn by turn directions (from the Apple Maps watch app) ?
The second option sounds legit. According to WKInterfaceMap class reference, tapping on the map will directly open the Apple Watch Maps application.
Quoting from the documentation:
A WKInterfaceMap object displays a noninteractive map for the location you specify. Maps must be configured dynamically from your interface controller. Use the methods of the WKInterfaceMap class to specify the visible region of the map and to add any annotations or points of interest. Tapping the map launches the Maps app on the user’s Apple Watch and displays the corresponding location.
Reference: https://developer.apple.com/library/prerelease/ios/documentation/WatchKit/Reference/WKInterfaceMap_class/index.html

iOS Map URL parameters for searching nearby

Our app used to display Google Map in UIWebView and show keyword search results near User's current location like so:
http://maps.google.com/?q=pizza&sll=36.02667514703798%2C-78.94532340586088&z=12
Which works well and returns all pizza restaurants near the given coordinates.
Now we are required to open the native Map app on iOS devices. So according to this
We changed to
http://maps.apple.com/?q=pizza&sll=36.02667514703798%2C-78.94532340586088&z=12
which opens native Map app and search for pizza, but the results are displayed on the entire US map, not at all near the specified coordinates. Like it ignores or doesn't recognize sll parameter.
What am I doing wrong? How do I show results near User's current location? My test device is iPhone 4S running iOS 6.1.3
Thanks
I'm not sure if this will fix it but according to that same page you linked to:
'The latitude and longitude points (in decimal format, comma separated, and in that order) for the map center point.'
Your example is not comma separated. Maybe worth trying that?

google maps distance matrix

I am using the Google Distance Matrix to determine the distance between the user and our centres.
This works fine, however the documentation states:
"Use of the Distance Matrix API must relate to the display of information on a Google Map; for example, to determine origin-destination pairs that fall within a specific driving time from one another, before requesting and displaying those destinations on a map. Use of the service in an application that doesn't display a Google map is prohibited."
But I am unsure how to "request and display the destinations on a map"
Is it possible to show the map in my application with the directions? If so where do I start? I have been looking but have been unsuccessful so must be searching for the wrong thing.
Microsoft Visual Studio 2012
ASPX.NET Application (VB)
Try using the google maps Image API
https://developers.google.com/maps/documentation/imageapis/

ASP.NET/Silverlight Location Points on Google/Bing Map

I realize that the question is pretty complicated and may require much research. Hope anybody can help me to get useful resources to achieve my goal.
I want to have a Google or Bing map on my ASP.NET 4 application (C#) to display all my logged in users as points on the map.
I understand that this involves five major problems
Get the location of the device (most likely standard laptop with IE9 browser) based on its unique IP address.
Integrate Google or Bing map with ASP.NET or Silverlight application.
Display the right portion of the map with the right Zooming depending on logged-in users locations.
Finally, mark the addresses as points on the map.
Note that the locations points should be dynamically reflected when any of the locations is changed.
The database is implemented using SQL SERVER 2005/2008R2
There are geo location services that can give you the latitude and longitude given an ip address.
As you mention you would be storing these in a database, getting all the current users would be simple database call.
Integrating a google map into a html page is very simple. You would only have to emit the necessary javascript from your page.
You should mark the points on the map first.
Google maps api has calls to fit the map to show all current points(fitBounds). I am guessing bing would have something similar.
To reflect the current points, you would have to fresh your locations from the database. I highly recommend an ajax call that returns json and using that to replot the points.

Resources