I working with windows phone app and I wonder, is there any way I can retrieve data from here maps like bus station or airport and showing that data into my apps?
and also to add some place information into here maps? like adding location in foursquare?
Not certain which maps offering this question is about, since There are no HERE maps API offering for the Windows Phone 7 as such, the maps API there were using Bing Maps instead.
Anyways, if this is HERE Maps question, then the SDK API does not offer any Functionality for what you are asking, however there is Places API with HERE, which could give you the places and you could search those places by category.
For adding places, I suppose that currently the API does not offer any interface which could be used by normal 3rd party developer.
Related
I'm working with MapControl from wp8.1 default controls. I can add different elements on map:
MapControl.MapElements.Add(polygonElement);
MapControl.MapElements.Add(mapIcon);
The question is, how to share this element to somebody? When I use Bing Maps browser app I can simply click on "share" button and get a link
http://binged.it/1zEKwlo
that will display all added data to anyone who has this link. Is there any way to share MapElements to another user?
Not really. If you want to share a map view you could capture a screenshot and send that, but that wouldn't be very interactive and I'm guessing not what you want. If you only want to share point based data then you can create a link to the Bing Maps consumer site which would cause the native maps app on Windows Phone to open (opens in browser for other apps). This would allow you to share a single point. If you want to share anything more than that I would recommend creating a mobile website that either loads data from the URL string, or from a database. If you are only sharing a little bit of data a URL might be enough. If you have enough data to make a URL longer than 2083 characters then you will need to look at a different solution. One option is to create a web service for saving the map view. This could generate a unique ID for the view and then you could pass that ID to a custom mobile website as a parameter in the URL. This process requires a decent amount of development but would remove most limitations you will encounter using other approaches. If you use this method I recommend taking a look at the Azure mobile services as you can quickly and easily create a web service that is connected to a database. You can even add authentication easily as well if you wanted.
I've definitely seen some REST APIs out there that can do this but I'm sure there's a WinRT/Windows Phone 8 Store App way of calculating driving distance (preferably with traffic) between two Geolocations points (lat/long).
I see ways of doing it by returning a map on the phone with the details, but I just want the distance information returned without going to a mapping UI or control.
This would preferably work on a tablet (WindowsRT) as well but Phone is the focus at the moment.
Bing Maps REST API is the way to do it.
Here's the documentation and a sample. You can find one way of how to use these with .NET here.
I am new to Windows Phone App development. I am developing app for windows phone 8.
I want to add map function in my app.
But I searched the stack overflow, I can see that I have to use REST service. So please can anyone help me how to use REST service and get the location based data using Bing Map.
You need to use the Bing Maps API detailed here
Ultimately though you are going to want to look at how to find a location by query on MSDN. These apis are easy to use but from experience I would use google maps API.
This is an example call
http://dev.virtualearth.net/REST/v1/Locations/locationQuery?includeNeighborhood=includeNeighborhood&maxResults=maxResults&include=queryParse&key=BingMapsKey
You would need to replace the variables with your data. For example the bingkey needs to be given to you by microsoft here
For my university I have to create an application that for the User Interfaces paper that I'm doing. I want to create an application that focuses on Africa and allows the user to plot on the map some points of interest.
First thing first though, i need to be able to get the Google maps API working in a form. Does anyone have any idea how I would do this?
Google maps is based on JavaScript. You will need to embed the maps objects into the page and use it that way.
A good starting point would be http://code.google.com/apis/maps/index.html and the most basic of tutorials is available at http://code.google.com/apis/maps/documentation/javascript/tutorial.html#HelloWorld.
I would definatley recommend then links above and then move onto something like http://googlemap.codeplex.com/. It's better to know what's going on underneath before abstracting it away.
Alternatively, you may wish to check out GMap.net (the website is not GMap.net: http://greatmaps.codeplex.com/)
GMap.NET is great and Powerful, Free, cross platform, open source .NET
control. Enable use routing, geocoding and maps from Coogle, Yahoo!,
Bing, OpenStreetMap, ArcGIS, Pergo, SigPac, Yandex, Mapy.cz, Maps.lt,
iKarte.lv, NearMap, OviMap, CloudMade in Windows Forms & Presentation,
supports caching and runs on windows mobile!
I've used this before with WinForms and found it pretty handy. I suggest this because parts of Africa may be better served by different map vendors.
How to show google maps in mobile application using .net2.0
A very simple approach is to use the Google Maps Static API, a HttpWebRequest and Image.Save to download an image of the map, e.g. "http://maps.google.com/staticmap?zoom=14&size=512x512&mapt
ype=mobile&markers=40.714728,-73.998672&key=YOUR-GOOGLE-MAPS-API-KEY" which can be shown in a PictureBox.
Regards,
tamberg
Late to the party, but you might find this helpful as well:
http://www.koushikdutta.com/2008/07/virtual-earth-and-google-maps-tiled-map.html
Should give you a bit more flexibility (zooming, moving around, etc... ) than the static maps API.
Do the maps absolutly have to be from Google? I was writing an application that made use of Live Maps to display maps on a Compact Framework application. When I wrote the app I used the 3.5 framework though, so I am not sure whether or not this will fit your needs.
http://www.codeproject.com/KB/mobile/WiMoWifiPosition.aspx
There is various controls available to integrate Google Maps into an ASP.net website. Since the Sockets and Net libraries are available on Windows Mobile, you could possibly integrate using the Google Maps API, however will have to build your own controls to display the maps. The API can be found here.