I have written a simple navigation appliaction for wp7. Now I want to integrate position sharing via SMS. For this purpose I would simply send the double longitude and double latitude values via SMS. With both values the receiver has to paste these manually to bing maps or another webservice to get my position. Is there a better way to wrap this values in a so called "position-object" which can be interpreted by the receiver and shows him the position on a map if he clicks on the message? Or is there another way o solve this?
If you transform your sms body as an URL to either Google Maps or Bing Maps with the coördinate, it could work.
But you still be better to send it as a tweet or email I guess ( the composed URL that is ).
Create a URI like this one:
http://maps.google.com/?q=[lat],[long]
For example:
http://maps.google.com/?q=-37.866963,144.980615
You can fill in the GPS coordinate to a SMS but there is now way to react to it as a recepient.
Related
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.
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 am developing a map App in windows phone 7.5 platform. I need draw a text along some road. In the android, I can create a Path object and assigned start and end points with it. And then I can call the drawTextOnPath API to draw the text along the path. But I don't know how to implement this in windows phone. It seems that I can only use TextBlock to draw text on WritableBitmap, but the TextBlock class does not provide API to change the orient of text. Must I use the XNA to draw the text?
EDIT1: I am not using any Map srevice such as Bing and the Map control to implement my app. Because the App just provides map of our school campus.
the article :http://windowsphonegeek.com/articles/Windows-Phone-Map-Control-Display-Current-Location-and-Remove-previous-Pushpins
is very useful
....................................2
o you want to find a way to draw path on writebitmap.
you can draw path on the parent control of the writebitmap.
like this:
var yourpath
= XamlReader.Load(#"") as Path;
Children.Add(_pathUnreadTriangle);
And MeasureOverride it
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.
I'm curious if I can do following this in wp7.
I want to do some basic things in park like:
Pan, zoom,
display POI layer.
Route from current location to park attractions,
concession stands,
misting stations,
bathrooms, etc.
Display additional info.
like height requirments and thrill levels when tapping on a ride
location.
Is it possible?
I think pan is not possible available. you have to set the zoom level explicitly or via the map's zoom button. There are a few Bing Maps API you can tap on for POI data. you should look at the following services
Route Service - Allows you to calculate location from one point to another http://msdn.microsoft.com/en-us/library/cc966826.aspx
Search Service - Allows you to do location searches eg. find nearby restaurants, petrol stations etc.
Other useful services
Geocode Service - Allows you to resolve address using coordinates and vice versa
Imagery Service - Gives you access to image data to build maps