![]() |
|
[Request] IGN maps - Printable Version +- RouteConverter Forum (https://forum.routeconverter.com) +-- Forum: Developers (https://forum.routeconverter.com/forum-6.html) +--- Forum: Development (https://forum.routeconverter.com/forum-13.html) +--- Thread: [Request] IGN maps (/thread-1019.html) Pages:
1
2
|
[Request] IGN maps - cbouju - 25.05.2011 Recently, the french IGN (National Geographical Institute) gives free of charge developers of non-commercial sites the API Géoportail (https: // to api.ign.fr / geoportail / index.do), who allows to use on-line of numerous and very precise given geographical with in particular maps until 1/25.000 very complete and very used in France. There are also aerial views, the cadastral plots of land, the buildings, the hydrography, the roads and administrative limits. He exists a 2D Web API in Javascript, but regrettably all this exist only for France. Can one intend, in a distant future, to begin to hope to see maybe one day the maps of the IGN in RouteConverter? ![]() RE: [Request] IGN maps - routeconverter - 25.05.2011 (25.05.2011, 13:46)cbouju Wrote: Can one intend, in a distant future, to begin to hope to see maybe one day the maps of the IGN in RouteConverter? Do they offer map tiles like Google and the OpenStreetMap project do? Then it should be fairly easy. If not, then you'd need someone who is able to port the Google Maps API to the IGN API and maintain it. RE: [Request] IGN maps - cbouju - 25.05.2011 I think it is the same process as GoogleMaps or Openlayers Some documentation in english here : https://api.ign.fr/geoportail/api/doc/index.html I have made a little web page for my localhost with ZazouMiniWebServer (http://localhost) : ------------------------------------------------------------------------------------------------------- <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <script type="text/javascript" src="http://api.ign.fr/geoportail/api?v=1.2&key=196939114615185794&instance=maCarte&"> <!-- --> </script> <script type="text/javascript"> <!-- function initGeoportalMap() { //Cette fonction sera exécutée au chargement de la page HTML //La carte doit y être créée et paramétrée geoportalLoadmaCarte("plancheCartographique","normal"); maCarte.addGeoportalLayers(); var projection_carte= maCarte.getMap().getProjection(); var projection_ctrl= maCarte.getMap().getDisplayProjection(); maCarte.getMap().setCenterAtLonLat(4.081811, 45.561618, 15); } --> </script> </head> <body> <div id="plancheCartographique" style="width:1000px;height:720px;"></div> </body> </html> ----------------------------------------------------------------------------------------------- This page works, but I do not really know how ..... I do not know the javascript! RE: [Request] IGN maps - routeconverter - 25.05.2011 (25.05.2011, 14:37)cbouju Wrote: I think it is the same process as GoogleMaps or Openlayers I'm not sure if the tiles are stored in the same fashion. (25.05.2011, 14:37)cbouju Wrote: I have made a little web page for my localhost with ZazouMiniWebServer (http://localhost) : The documentation didn't help since it's for OpenLayers. I found this article about a IGN Google Library and a reference to wikiloc, but failed to extract the tiles url from them. What I need is the format of the tile urls (and some research if the owners of the server allow accesses): function getTileUrlCyc(a, b) { return "http://andy.sandbox.cloudmade.com/tiles/cycle/" + b + "/" + a.x + "/" + a.y + ".png"; } I've tried to open your file for the local filesystem but there was one 403 and no map was shown. If it works on your side, please debug where the tiles are loaded from for example with Firebug and the network tab. RE: [Request] IGN maps - cbouju - 25.05.2011 (25.05.2011, 16:06)routeconverter Wrote: I've tried to open your file for the local filesystem but there was one 403 and no map was shown. If it works on your side, please debug where the tiles are loaded from for example with Firebug and the network tab.To make it: - I create a directory c:\ign - I place in this directory the file above (named index.html) - I place in this directory the program server ZazouMiniWebServer.exe - I launch ZazouMiniWebServer.exe - I open Firefox and I call the url [http://localhost] ( If I call : [file:///c:/ign/index.html] that does not work because Geoportail attributes a license for a site and allows only to make tests in local with the url " localhost ") I tested the page with Firebug, but I do not know how to interpret the results..... RE: [Request] IGN maps - routeconverter - 25.05.2011 (25.05.2011, 16:43)cbouju Wrote: I tested the page with Firebug, but I do not know how to interpret the results..... Look for the Network tab and for urls with the pattern I have given above. RE: [Request] IGN maps - cbouju - 25.05.2011 I have do it, and don't found this.. RE: [Request] IGN maps - kumo - 25.05.2011 (25.05.2011, 17:13)cbouju Wrote: I have do it, and don't found this.. Hi Christophe, I just met Christian before he left for vacation. His answer will delay for approximately 10 days. RE: [Request] IGN maps - cbouju - 25.05.2011 (25.05.2011, 19:53)kumo Wrote: I just met Christian before he left for vacation. His answer will delay for approximately 10 days. Ok, thanks ! We have only now to hope some good tracks, routes and waypoints to Christian ! RE: [Request] IGN maps - routeconverter - 03.06.2011 (25.05.2011, 17:13)cbouju Wrote: I have do it, and don't found this.. Then die IGN API probably loads the tiles with a different URL pattern? |