Toggle navigation
Navmii livemap API beta
Geocoder
Geocoding example 1
Geocoding example 2
Reverse geocoding example 1
Reverse geocoding example 2
Routing
Example 1
Example 2
Example 3
Search
Example 1
Example 2
Routing example 2
jsfiddle
Script
Map
Json
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Start
var directionsService = new navmii.maps.DirectionsService(); var directionsRequest = { origin: new navmii.maps.LatLng(49.26588, 4.039889), destination: new navmii.maps.LatLng(47.927949, 1.92268) }; window.wait(1); directionsService.route(directionsRequest, function (response, status) { window.wait(0); if (status == navmii.maps.DirectionsStatus.OK) { var map = new navmii.maps.Map(document.getElementById('map'), { zoomControl: false, maxZoom: 20, copyrightVisible: true }); window.showMapTab(); var renderer = new navmii.maps.DirectionsRenderer({ map: map }); renderer.setDirections(response); window.showText(JSON.stringify(response, null, '\t')); } else { window.showJsonTab(); window.showText('Error: ' + navmii.maps.DirectionsStatus[status] + "\n" + JSON.stringify(response, null, '\t')); } });