mapquest

file_get_contents returning corrupted image from URL

て烟熏妆下的殇ゞ 提交于 2021-01-27 14:25:59
问题 I'm using this code to download image files from the Mapquest Traffic API. <?php $files = glob("/root/TrafficHistory/*.gif"); $lastFileName = $files[count($files)-1]; $newFile = time() . ".gif"; $imgData = file_get_contents("http://www.mapquestapi.com/traffic/v2/flow?key=**REMOVED**&mapLat=34.05396382838673&mapLng=-118.24529104634557&mapHeight=1000&mapWidth=1000&mapScale=433342"); file_put_contents("/root/TrafficHistory/" . $newFile, $imgData); $md5Old = md5_file($lastFileName); if ($md5Old =

Custom MQAnnotationView button is not clickable

蹲街弑〆低调 提交于 2020-01-16 18:39:18
问题 I'm working with MapQuest but I think that is not the problem. I have map (with MapQuest) and custom pins on it. I can tap the pins and my custom callout (xib-file with labels and one button) pops up and everything is working fine. The only problem is that I can't press the button on the custom callout view (UIView). Here is my code: -(MQAnnotationView*)mapView:(MQMapView *)aMapView viewForAnnotation:(id<MQAnnotation>)annotation { static NSString* identifier = @"Pins"; MQAnnotationView *

How to get focus to map marker when click on a link outside the map?

白昼怎懂夜的黑 提交于 2019-12-25 08:48:30
问题 So, I have a map with the mapquest leaflet which showing few markers on it and have some popup messages. However, everything working well but underneath of the map I have one table where I am showing hotel number. so like this with link: <a href='#Hotel22'>Hotel 22</a><a href='#Hotel23'>Hotel 23</a><a href='#Hotel24'>Hotel 24</a> So, when any user click on #Hotel22 then it will direct take focus to map's particulare marker and open up the marker window. So that user will know that the Hotel

MapQuest API key no longer working

…衆ロ難τιáo~ 提交于 2019-12-12 21:04:41
问题 We have been using a MapQuest API key for a few years now but at some point in the last 24hrs or so the maps have stopped working and we are getting an error: "This key is not authorized for this service." I logged in and it appeared our old key was removed and automatically generated a new key for the new Open Maps API. I have since waited over an hour and still this new API key is giving this error message. Does anyone know what the story is? 回答1: It seems like they have changed the URL for

New Mapquest tile server URL

此生再无相见时 提交于 2019-12-12 02:24:30
问题 I have created a map using classic MapQuest tiles. I have got tile server URL from here: https://leaflet-extras.github.io/leaflet-providers/preview/ I noticed that changes I have made in Open Street Map editor are not showing in classic MapQuest. So I think they don't update the old version of MapQuest anymore. Maybe I can move my map on the new MapQuest tiles, but I can't find tile server URL. Is there any possibility to use new MapQuest tiles? 回答1: There is no direct access to tiles any

PHP curl bad request 400 - mapquest geocoding

二次信任 提交于 2019-12-10 14:11:36
问题 My url is: http://www.mapquestapi.com/geocoding/v1/batch?key=dNBvDLtTx85L3akdg8vBoHQXrWpDJSEI&location=HEBRON,KY,US&location=CINCINNATI,KY,US&location=CINCINNATI,KY,US&location=BEDFORD PARK,IL,US&location=BEDFORD PARK,IL,US&location=HODGKINS,IL,US&location=HODGKINS,IL,US&location=HODGKINS,IL,US&location=BALDWIN PARK,CA,US&location=BALDWIN PARK,CA,US&location=BALDWIN PARK,CA,US&location=,,US It's long but it should be compliant with https://www.mapquestapi.com/geocoding/ The mystery unfolds

mapquest direct tile access discontinued

女生的网名这么多〃 提交于 2019-11-30 01:19:14
问题 As of today 2016-07-11, MapQuest has discontinued direct access to their tiles. They seem to only support Leaflet, iOS and Android SDKs. Any idea how to get Openlayers to work with MapQuest again, or should we be thinking of a different alternative? Thanks. 回答1: For basemap imagery with OpenLayers, we are basically down to Bing Maps, Mapbox, and DigitalGlobe. All three services require an API key, and all three offer a free tier. I'm currently using DigitalGlobe and have been very pleased

Routing between points with MapBox

天大地大妈咪最大 提交于 2019-11-28 11:37:53
I know that similar questions have been asked here before but none of them really answered my question and I am under pressure to finish my project by a deadline. Basically I am writing an application that will show online and offline maps. I am currently using MapBox SDK for the viewing of both offline and online maps, however, MapBox does not currently offer a routing solution. So I am looking for a way to do it. The main problem seems to be that there isn't just one SDK that will offer online OSM maps, offline OSM maps AND routing so I was wondering would I be able to use MapBox to handle

Routing between points with MapBox

試著忘記壹切 提交于 2019-11-27 06:20:53
问题 I know that similar questions have been asked here before but none of them really answered my question and I am under pressure to finish my project by a deadline. Basically I am writing an application that will show online and offline maps. I am currently using MapBox SDK for the viewing of both offline and online maps, however, MapBox does not currently offer a routing solution. So I am looking for a way to do it. The main problem seems to be that there isn't just one SDK that will offer