bing-maps

Calculate and draw route on Bing Maps control

我们两清 提交于 2019-11-30 15:39:13
in my app for WP7(mango) I need to navigate the user from one point to another. I know there is the Map control that lets you draw staff on it, but how do you ask it to draw the path for you? (based on the specified destination & user's current location - but that keeps changing so how do you update the route if he goes of the way?) To update the map with the users current location, use the GeoCoordinateWatcher and update the position of a databound Pushpin as it changes. Remember to set the minimum distance to something low, like 5 meters. A pushpin like the one on bing maps, can be created

How can I get Tile Count, Tile X, Tile Y details without specifying zoom Level (or LevelOfDetails)?

北慕城南 提交于 2019-11-30 10:12:52
This is with reference to Google Tile Map or Bing Maps. Is it possible to get Tile Count, Tile X, Tile Y details without specifying zoom Level (or LevelOfDetails) with any kind of internal calculations? Client will give just Coordinates P1 and P2 and ask for a Tile Map and Bound Box, etc. Shilpa Gilbert Le Blanc Each tile is 256 pixels by 256 pixels. Zoom level 0 is 1 tile. (1 x 1) Zoom level 1 is 4 tiles. (2 x 2) Zoom level 2 is 16 tiles. (4 x 4) Zoom level 3 is 64 tiles. (8 x 8) Zoom level 4 is 256 tiles (16 x 16) The x and y counts are doubled for each zoom level. Per 88ad's comment, the

How to add Bing Maps v8 to Angular 2.0?

血红的双手。 提交于 2019-11-30 09:34:47
I want to add Bing Map V8 control to my Anguar 2.0 project. I want to know what I need to do to add Bing Map V8 into Angular 2.0 project. I have attached my implementation. The component I created couldn't be loaded. How do I reference Microsoft.Maps.Map? Here is an example of the bing map v8. Everything works well if saving the following example as HTML. The bing map key was clipped. <!DOCTYPE html> <html> <head> <title>addOneLayerItemHTML</title> <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/> </head> <body> <div id='printoutPanel'></div> <div id='myMap' style='width:

How to tell if a line intersects a polygon in C#?

可紊 提交于 2019-11-30 09:19:15
I have a question very similar to this: How to know if a line intersects a plane in C#? I am searching for a method (in C#) that tells if a line is intersecting an arbitrary polygon. I think the algorithm by Chris Marasti-Georg was very helpful, but missing the most important method, i.e. line to line intersection. Does anyone know of a line intersection method to complete Chris Marasti-Georg's code or have anything similar? Is there a built-in code for this in C#? This method is for use with the Bing Maps algorithm enhanced with a forbidden area feature. The resulting path must not pass

Converting UTM (wsg84) coordinates to Latitude and Longitude

。_饼干妹妹 提交于 2019-11-30 08:26:38
I've been searching for a while now (here and on google obviously) for a neat way to convert a set of UTM coordinates to Latitude and Longitude. I've got the coordinates and I know in what zone they are, but how do I convert this to Latitude and Longitude? I Was hoping there would be some kind of class that could do at least some of the magic for me, but it doesn't seem so :( Any suggestions on this? I know it can be done, as this converter seems to work just fine Geographic/UTM Coordinate Converter . Any input is greatly appreciated! :) Thanks! Take a look at this .NET library http://projnet

Location search autocomplete that integrates with bing/google geocoding

强颜欢笑 提交于 2019-11-29 23:22:11
Any nice suggestions on auto complete location searches, that integrate with something like Google or Bings location data? I am wanting capture the location of my users on sign up, currently I have a free text input box. I am wanting to have some sort of auto complete that guides the user to inputting more sanitised information, ideally I would like to geo-code the user too. I'm currently using the jQuery autocomplete for the autosearch, but this requires me to provide the location data, which i dont have or want to maintain. If you don't want to maintain your own database of locations (good

Calculate and draw route on Bing Maps control

白昼怎懂夜的黑 提交于 2019-11-29 22:07:43
问题 in my app for WP7(mango) I need to navigate the user from one point to another. I know there is the Map control that lets you draw staff on it, but how do you ask it to draw the path for you? (based on the specified destination & user's current location - but that keeps changing so how do you update the route if he goes of the way?) 回答1: To update the map with the users current location, use the GeoCoordinateWatcher and update the position of a databound Pushpin as it changes. Remember to set

Get business type/industry from Bing Phonebook API

筅森魡賤 提交于 2019-11-29 17:40:47
The below example shows how I'm building the query string that will return a bunch of addresses for the search parameters defined in the query string (in this case, Starbuck's)...I'm wondering if it's possible to use the Bing Phonebook API to define a type of entity that you're looking for e.g. Cafe, Gas Station, Software Company, etc...? function Search(position) { // note a bunch of this code uses the example code from // Microsoft for the Phonebook API var requestStr = "http://api.bing.net/json.aspx?" // Common request fields (required) + "AppId=" + _appId + "&Query=starbucks" + "&Sources

Converting UTM (wsg84) coordinates to Latitude and Longitude

强颜欢笑 提交于 2019-11-29 12:26:01
问题 I've been searching for a while now (here and on google obviously) for a neat way to convert a set of UTM coordinates to Latitude and Longitude. I've got the coordinates and I know in what zone they are, but how do I convert this to Latitude and Longitude? I Was hoping there would be some kind of class that could do at least some of the magic for me, but it doesn't seem so :( Any suggestions on this? I know it can be done, as this converter seems to work just fine Geographic/UTM Coordinate

Get location coordinates using bing or google API in python

﹥>﹥吖頭↗ 提交于 2019-11-29 10:26:06
问题 Here is my problem. I have a sample text file where I store the text data by crawling various html pages. This text contains information about various events and its time and location. I want to fetch the coordinates of these locations. I have no idea on how I can do that in python. I am using nltk to recognize named entities in this sample text. Here is the code: import nltk with open('sample.txt', 'r') as f: sample = f.read() sentences = nltk.sent_tokenize(sample) tokenized_sentences =