maps

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

馋奶兔 提交于 2019-12-18 18:24:13
问题 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 回答1: I strongly recommend Google Maps. Fabulous documentation Code Playground Very fast learning curve With the

How intercept a google maps intent in Android?

旧时模样 提交于 2019-12-18 17:02:32
问题 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"

Converting long/lat to pixel x/y, given a zoom-level

北城余情 提交于 2019-12-18 16:10:15
问题 I'm trying to develop a page in ASP.NET that will act as a tile-server for a Google Map It will pull a collection of latitude/longitude points from the database, then render them as small red dots on a transparent background, given a zoom-level (default: 15). It will then return the result as a GIF-type image. Have any algorithms or libraries been developed that allow me to take this set of latitudes/longitudes and convert them to a set of 2D pixel co-ordinates, given a zoom level? (This is

Get key in groovy maps

醉酒当歌 提交于 2019-12-18 13:54:09
问题 def map = [name:"Gromit", likes:"cheese", id:1234] I would like to access map in such a way that I can get the key something like the output should be map.keys returns array of string. basically i just want to get the keys output: name likes id 回答1: try map.keySet() and if you want an array: map.keySet() as String[]; // thx @tim_yates Or, more groovy-ish: map.each{ key, value -> print key; } 来源: https://stackoverflow.com/questions/4898062/get-key-in-groovy-maps

Get zip code based on lat & long?

依然范特西╮ 提交于 2019-12-18 13:24:32
问题 Is there a service or API I can ping, and pass in the lat/long as parameters, where it returns the zip code that lat/long pair is within? This is US-only, so I don't have to worry about international codes, etc. I feel like Google Maps' reverse-geocoding is too heavy for me. I'd prefer something lighter, if possible. This will be done in javascript. 回答1: It is called Reverse Geocoding (Address Lookup). To get address for lat: 40.714224, lng: -73.961452 query http://maps.googleapis.com/maps

Mapping specific States and Provinces in R

泪湿孤枕 提交于 2019-12-18 12:47:05
问题 I'm trying to use R to generate a figure with sample localities for my FieldBio project. So far, I've been able to map the US states I want, to map Canada (national border), to overlay these two maps; what I'd like to do, though, is to map the following states/provinces specifically, excluding the others: California Nevada Utah Colorado Wyoming Montana Idaho Washington Oregon British Columbia Alberta Here is the code I've been using so far: >map('state', region = c('california', 'nevada',

Google Maps - Street View Static Image

佐手、 提交于 2019-12-18 12:35:41
问题 Is there a way to insert an address into a link and have it bring up the street view? For instance: <img src="http://maps.google.com/?q=ADDRESSHERE&view=streetview" /> 回答1: Street View now has a static images API. Here's an example: http://maps.googleapis.com/maps/api/streetview?size=640x480&location=43.0635309,141.3253261&fov=120&heading=235&pitch=10&sensor=false Here's the docs: https://code.google.com/apis/maps/documentation/streetview/ 2011: 2017: 回答2: Might be best to use Google Maps

How can I add programmatically add a PushPin, and could I make it have a custom image?

三世轮回 提交于 2019-12-18 12:03:18
问题 I'm trying to create a map application but the examples I find describes a myMap.Children list that my myMap object does not have :-( I've created a map, pretty much straight forward: <maps:Map Visibility="Collapsed" Name="MyMap" Height="670" Width="400" ZoomLevel="10" Pitch="0" CartographicMode="Hybrid" Margin="30,0" /> So how can I in C# add PushPins, and could these have a image from Assets ? 回答1: See Nokia's Maps tutorial on "Adding Graphics to a Map control" or see MSDN's "How to add

How to use zip code instead Lat and Lng in Google maps API

余生颓废 提交于 2019-12-18 11:46:06
问题 I wonder if there is a way to use zipcode instead of Lat and Lng, using this snippet or using Geocoding Requests. <script type="text/javascript"> function initialize() { var latlng = new google.maps.LatLng(22.1482635,-100.9100755); // var latlang = new google.maps.zipcode(7845); <- Is there a way to do that? var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var marker = new

How to create a simple google maps address search with autocomplete in flutter and get latitude and longitude?

故事扮演 提交于 2019-12-18 11:42:52
问题 I'm new at Flutter and I'm trying to build a simple google maps app. I've already implemented google maps to the app and it is running perfect. But now I want to add google maps autocomplete and I can't find a simple tutorial or example that is focused on it. I have a TextField and I want to show places and addresses below it according to what the user types. After showing the results, I need to get its latitude and longitude to mark on the map. The code below represents my BottomSheet, that