maps

Adding words to a HashMap with a key of how many times they appear

一世执手 提交于 2019-12-13 07:17:36
问题 I'm writing a Java program which adds all of the words on a website into a HashMap, and then assigns them a key of how many times they appear on the page. For instance, if I ran it on a page with only the words "hello, java, coffee, java", the output would be Java : 2 Coffee : 1 Hello : 1 This also ignores certain words that I don't want included. Here's what I have so far. Map<String, Integer> found = new HashMap<>(); // (word,frequency) Matcher match = Pattern.compile(word_pattern).matcher

Batch accessing Google or Bing Maps from C#

删除回忆录丶 提交于 2019-12-13 07:09:54
问题 Good morning, I am currently working on a project in which I need to compute the pairwise distance between some 4000 points. Since I have the coordinates of all the points, computing the straight-line distance between them was not very difficult... But now I would like to compute the same ~ 8 million distances using not the straight-line path but the shortest path by road, as given by GPS software. Can I access Google/Bing/other map services from C# to compute these distances? Thank you very

Translate GPS coordinates to location on PDF Map

限于喜欢 提交于 2019-12-13 06:11:59
问题 I'd like to know (from a high level view) what would be required to take a pdf floor plan of a building and determine where exactly you are on that floor plan using GPS coordinates? In addition to location, the user would be presented with a "turn by turn" directions to another point on the map, navigating down hallways, between cubicles, etc. Use case: an iPhone app that determined a user's location and guided them to a conference room or person's office in the building. I realize that this

WPF Application with map control and custom map

烂漫一生 提交于 2019-12-13 06:08:02
问题 I have a georeferenced orthofotomap of cmentary. There is layers with foto, graves and roads between them. I'm trying to create WPF application with map control and display map connected with database that I created. I need to allow user to click some grave and then show a overlay with some personal date and button to navigate to this specific grave using routes that I marked before in other program like QGIS. Is there any way to do is with Bing Maps? Or do you know any way to resolve this

which offline maps is better for iphone [closed]

不打扰是莪最后的温柔 提交于 2019-12-13 05:59:00
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm working on iphone application containing offline maps for one city only I've searched and found mapBox and route me , which is better if I want to drop pins on the map and view information for each pin ? Can I store google map for one city in the data base and use it ? Any suggestions for this ? 回答1: MapBox,

google map marker is not pinning properly

放肆的年华 提交于 2019-12-13 05:36:19
问题 Code: var dest1 = document.getElementById('textbox1').value; var request = { origin:start, destination:dest1, travelMode: google.maps.TravelMode[selectedMode] } directionsService.route(request, function(response, status) { if (status == google.maps.DirectionsStatus.OK) { directionsDisplay1.setDirections(response); } }); I am finding a location using google API and then calculating the distance between the searched place and the particular hotel which is coming from my data base, In image you

C++ map really slow?

送分小仙女□ 提交于 2019-12-13 05:30:56
问题 i've created a dll for gamemaker. dll's arrays where really slow so after asking around a bit i learnt i could use maps in c++ and make a dll. anyway, ill represent what i need to store in a 3d array: information[id][number][number] the id corresponds to an objects id. the first number field ranges from 0 - 3 and each number represents a different setting. the 2nd number field represents the value for the setting in number field 1. so.. information[101][1][4]; information[101][2][4];

Get Distance per Country with Graphhopper

徘徊边缘 提交于 2019-12-13 05:21:51
问题 We have a running Graphhopper Server in our company for getting routes. Is there a way to find out how far we are driving in each country? e.g if I'm driving from Munich to Vienna I would like to know how many km we are driving in Germany and how many in Austria. 回答1: This is not yet possible out of the box. You'll have to create a feature request for this or implement this on your own: grab the country boundaries, identify the edges/nodes to mark in the graph and then create additional

Google geocode API returns location of motorway rather than postcode area supplied

六眼飞鱼酱① 提交于 2019-12-13 05:17:06
问题 I get the same result if I use the URL or javascript APIs. If I pass (as an address) the location "M5" for geocoding, rather than returning the location of the M5 Postal Area (Salford, Manchester) the location returned is the centre of the M5 Motorway. Interestingly in the old google maps (http://maps.google.co.uk) I get the same behaviour but the new google maps (same URL) returns the correct area. Is there another way I can define the location (rather than 'address') that will be more

Problems trying to use Android Mapview classes

删除回忆录丶 提交于 2019-12-13 05:15:41
问题 I'm a noob to Android so bear with me and apologies if my post is moronic. Basically, I'm trying to add a mapview to the XML which is causing a few problems, the error I'm getting is: 06-30 12:29:04.760: ERROR/AndroidRuntime(320): java.lang.NoClassDefFoundError: package.android.mapclass From what I can tell the error is happening on this call: Intent i = new Intent(oldclass.this, mapclass.class); The mapclass itself is: package package.android; import android.app.Activity; import android