maps

iOS: How to get route path between two coordinates

给你一囗甜甜゛ 提交于 2019-12-19 11:27:29
问题 In my project I've to find out the route path between two locations with the help of latitude and longitude. I'm using the following code for it - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [mapvw setDelegate:self]; [self mapp]; } -(void)mapp { CLLocationCoordinate2D coordinateArray[2]; coordinateArray[0] = CLLocationCoordinate2DMake(28.6129, 77.2295); coordinateArray[1] = CLLocationCoordinate2DMake(28.6562, 77.2410); self

jQuery and Google Maps json response

僤鯓⒐⒋嵵緔 提交于 2019-12-19 07:17:13
问题 I am having troubles getting geo location info from google maps api the code is pretty straight forward $.ajax({ type: "GET", cache: false, url: "http://maps.googleapis.com/maps/api/geocode/json", dataType: "jsonp", data: { address: "Ljubljana " + "Slovenia", sensor: "false" }, jsonpCallback:'json_response', success: function(data) { top.console.debug(data); $('#location_setter').dialog('close'); }, error: function() { alert("Error."); } }); function json_response(data){ alert("works"); } I

Adding custom marker text to Google Map

为君一笑 提交于 2019-12-19 05:07:16
问题 I'm creating a new website for new law office. I followed Google API for embedding maps. I added their address, but would like to add the name of the firm to the map... You can see in the map, it doesn't capture the name: <iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?key=myapikey&q=883%20Farmington%20Avenue%2C%20Berlin%2C%20CT%2006037%2C%20United%20States"></iframe> So, I tried adding a name before the address in the iframe:

How to use the QML/QtLocation module for displaying a large amount of offline data on a map?

断了今生、忘了曾经 提交于 2019-12-19 04:44:50
问题 I'm in the process of creating an offline Slippy Map using QML and their new QtLocation module (>=Qt5.4). I managed quite easily to display the tiles with an offline cache. Now I would like to add custom data to this map (a list of ~7000 airports). This huge list would have to be clustered depending on the zoom level (for performance and readability reasons, unless the QtLocation has built-in "optimizations"..?. What would be to most elegant/best way to achieve this, staying as close as

Raycasting algorithm with GPS coordinates

て烟熏妆下的殇ゞ 提交于 2019-12-19 04:08:28
问题 I'm making a small application with Google maps that determines if an entered address is part of a predefined service region. The user enters an address, and a PHP script fetches the lat/long from the Geocoding API and applies raycasting with a bunch of coordinates that make up the vertices of the region (taken from a KML file Maps generated). The problem is this: it works most of the time, but some addresses outside the service region incorrectly report as eligible, while some others inside

Overlaying R county map onto a state map

半城伤御伤魂 提交于 2019-12-19 03:37:16
问题 R newbie here. If I first use map('state') , how can I then use map('county', ylim=..., xlim=...) but offset it like this: Right now, I am using imagemagick's composite -gravity southwest ... to combine 2 PNG files, but this seems less than ideal. 回答1: You can use the fig option in a graphics parameter call to set the region where a figure will be plotted. map("state") par(fig=c(0.1,0.9,0,0.6), new=TRUE, xpd=NA) map("county",regions="california",add=TRUE) In regards to the other code, xpd=NA

Geofencing in background on Android 8 or 9 does not work

会有一股神秘感。 提交于 2019-12-19 03:14:13
问题 I try to make appear a push alert to the user when he reach a defined zone. So I coded my app from : https://developer.android.com/training/location/geofencing It is working perfectly if my app is running with a service following the location of the user. It also work if I start google map for example, that will track my location too. Pushes will appear. But if I close my app the push won't appear, so the geofencing is not detected if no app is tracking my location. Is it normal ? How to make

faster-rcnn

时间秒杀一切 提交于 2019-12-18 20:36:19
转载链接: http://blog.csdn.net/zy1034092330/article/details/62044941 参考博客:http://blog.csdn.net/WoPawn/article/details/52223282?locationNum=7 进经过RCNN和Fast RCNN的积淀,Ross B. Girshick在2016年提出了新的Faster RCNN,在结构上,Faster RCN已经将特征抽取(feature extraction),proposal提取,bounding box regression(rect refine),classification都整合在了一个网络中,使得综合性能有较大提高,在检测速度方面尤为明显。 图1 Faster CNN基本结构(来自原论文) 缩进依作者看来,如图1,Faster RCNN其实可以分为4个主要内容: Conv layers。作为一种CNN网络目标检测方法,Faster RCNN首先使用一组基础的conv+relu+pooling层提取image的feature maps。该feature maps被共享用于后续RPN层和全连接层。 Region Proposal Networks。RPN网络用于生成region proposals

Android - Google Maps API v2 - SupportMapFragment Errors

旧街凉风 提交于 2019-12-18 19:06:04
问题 I am trying to get one of my apps back up and running with the Google Maps API v2 for the first time. I created a key for my app in my keystore, extracted the SHA1 hash, acquired an API key, then did the following in-app... I included: google-play-services.jar as well as importing the GooglePlayServices libraryand adding it as a reference to the project. In my Java code I simply just load the layout resource. public class Times extends Activity{ public void onCreate(Bundle savedInstanceState)

Android indoor directions with Google api

耗尽温柔 提交于 2019-12-18 18:32:13
问题 I currently have an app which displays a map fragment and can display navigation to a given point. The indoor maps is enabled and the building I'm trying to use does have indoor maps, but it only navigates to outside the building even when the transport mode is set to walking. Is there currently any way to do this? 回答1: It seems that the Google Maps Android API does not support this feature for now. Even if you select the correct travel mode, which should be walking, the route is traced on