maps

Select points from map database according to radius

坚强是说给别人听的谎言 提交于 2019-11-30 16:20:41
问题 I have a database which has latitude/longitude of points. If I want to select all points within a specific range centered in a specific point it works fine BUT if there is any point located at this center, it will not get selected! I use this query: SELECT *, ( 6371 * acos( cos( radians(-27.5796498) ) * cos( radians( latitude ) ) * cos( radians( longitude ) - radians(-48.543221) ) + sin( radians(-27.5796498) ) * sin( radians( latitude ) ) ) ) AS distance FROM map HAVING distancia <= 2 In the

best api for develop with maps web application google-maps vs bing-maps

和自甴很熟 提交于 2019-11-30 15:48:31
i'm need to develop and web application that uses maps, and i have two option in my to reach the goal. Google maps or bing maps, my concern it's witch it's better about Documentation it's very important Implementation with a Web application develop in .net Fast learning curve i need recommendations because for my point of view both are a completed tools for solve my problem. Thanks I strongly recommend Google Maps. Fabulous documentation Code Playground Very fast learning curve With the new v3 api you don't need a api key Cheers take a look at our series of articles comparing aspects of both,

How intercept a google maps intent in Android?

主宰稳场 提交于 2019-11-30 15:17:01
I was trying to intercept a google maps intent as the following: Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse("geo:37.423156,-122.084917")); but I haven't found any example, link or documentation of this. So, I'm thinking that unfortunately is not possible. In the Manifest file I put several intent filters. Specially I think that the next intent filter must match with the mentioned intent. <intent-filter> <action android:name="android.content.Intent.ACTION_VIEW" /> <data android:scheme="geo"/> </intent-filter> In addition I tried to investigate what activities

Detect if point in Latitude/Longitude based Polygon

霸气de小男生 提交于 2019-11-30 15:16:11
I'd like to detect, on the server side using C# only, whether a Latitude/Longitude based coordinate is within an area (polygon) made up of Latitude/Longitude based points. I believe the right way to do this is raycasting, but maybe there is already a C# implementation out there as it's not trivial? Also, I understand that SQL Server has some geometry function such as STIntersects but in order to use that I need both SQL Server 2008 running and every check would involve a database connection which is undesirable. bmm6o Since a sphere is a locally diffeomorphic to the plane, you can use any

Google Maps API Countries and Regions as Polygons

我与影子孤独终老i 提交于 2019-11-30 14:37:57
I've got a question about highlighting areas on Google map. I know how to place polygons on map. It's pretty simple and straghtforward. The problem is I don't have access to such data and I don't know any source of it. From my database I get lat/lon for a specific place and I need to have data about their borders. Do you know any free or paid database that contains such polygons data for all countries/regions in the world? Thanks in advance. http://www.gelib.com/world-borders.htm There is a .kml file at this location you can use as a starting point. With this tool you can create any polygon

Plotting Great Circle Paths

妖精的绣舞 提交于 2019-11-30 14:35:10
问题 I'm trying to plot some path/connection based maps but am unable to figure out how. I see a lot of possibilities for one point based metrics (crime hotspots in London, etc. with googleVis, ggmap, etc.) but I can't find too many examples of two points based metrics (immigrations between cities, train routes, etc.) There is an example with the package geosphere, but it seems to not be available for R 3.0.2 . Ideally I would like something like this D3 example and would also like to customise

Address suggestions by google maps

我怕爱的太早我们不能终老 提交于 2019-11-30 14:17:29
问题 Does somebody know if there is any way to reproduce an ajax suggestion box like http://maps.google.com/ have in my webpage using the google maps api? The idea would be for example if somebody writes down "15 Avenue" a list of suggestions: "15 Avenue of the Americas, New York, NY, United States" "15 Avenue of the Stars, Los Angeles, CA, United States" Etc Just a yes no qustion =) Thanks 回答1: Yes. Look at the geocode response for "15 Avenue"... http://maps.googleapis.com/maps/api/geocode/json

Get street graph for a game using Google Maps API

杀马特。学长 韩版系。学妹 提交于 2019-11-30 14:08:51
问题 I'm a total newbie to the Google Maps API and I want to develop a game that will use streets on google maps as the paths. I know pretty well what I need, but I don't even know what to begin searching for in the API docs... How can I get something like a graph representation for the streets in a city or other portion of a google map - something like vertices for intersection and street names for edges (or anything that I can convert to something like this), with the vertices mapped to (lat,

Get street graph for a game using Google Maps API

跟風遠走 提交于 2019-11-30 13:54:38
I'm a total newbie to the Google Maps API and I want to develop a game that will use streets on google maps as the paths. I know pretty well what I need, but I don't even know what to begin searching for in the API docs... How can I get something like a graph representation for the streets in a city or other portion of a google map - something like vertices for intersection and street names for edges (or anything that I can convert to something like this), with the vertices mapped to (lat, long) coordinate points ...or even the Polyline objects for the streets so I can extract what I want from

Displaying and navigating large custom maps offline using Phonegap

橙三吉。 提交于 2019-11-30 13:53:29
My question is how to efficiently display large custom maps in an offline Phonegap application, allowing them to be panned and zoomed smoothly while still supporting older mobile devices? I’m developing a mobile application that involves using geolocation to navigate walking routes in remote areas where it’s likely the user won’t have a signal and therefore an internet connection. It’s important that the app works well with Android 2.2+ (so SVG is not an option) as well as iOS4+. I’ve drawn custom vector maps using Adobe Illustrator at resolutions appropriate to each route, the average being