|
|
<?xml version="1.0" encoding="utf-8"?> <!--
Copyright (C) 2015 Akretion (www.akretion.com) @author: Alexis de Lattre <alexis.delattre@akretion.com> The licence is in the file __openerp__.py -->
<openerp> <data>
<!-- Interesting source of information: http://northwestspatial.com/wp/?p=38 --> <record id="google_maps" model="map.website"> <field name="name">Google Maps</field> <field name="address_url">https://www.google.com/maps?ie=UTF8&q={ADDRESS}</field> <field name="lat_lon_url">https://www.google.com/maps?z=15&q={LATITUDE},{LONGITUDE}</field> <field name="route_address_url">https://www.google.com/maps?saddr={START_ADDRESS}&daddr={DEST_ADDRESS}&directionsmode=driving</field> <field name="route_lat_lon_url">https://www.google.com/maps?saddr={START_LATITUDE},{START_LONGITUDE}&daddr={DEST_LATITUDE},{DEST_LONGITUDE}&directionsmode=driving</field> </record>
<record id="openstreetmap" model="map.website"> <field name="name">OpenStreetMap</field> <field name="address_url">https://nominatim.openstreetmap.org/search?q={ADDRESS}</field> <field name="lat_lon_url">https://www.openstreetmap.org/?zoom=15&mlat={LATITUDE}&mlon={LONGITUDE}</field> <field name="route_lat_lon_url">https://www.openstreetmap.org/directions/?engine=orsm_car&route={START_LATITUDE},{START_LONGITUDE};{DEST_LATITUDE},{DEST_LONGITUDE}</field> </record>
<record id="openstreetmap_fr" model="map.website"> <field name="name">OpenStreetMap FR</field> <field name="address_url">http://tile.openstreetmap.fr/?q={ADDRESS}</field> <field name="lat_lon_url">http://tile.openstreetmap.fr/?zoom=15&lat={LATITUDE}&lon={LONGITUDE}</field> </record>
<record id="bing_maps" model="map.website"> <field name="name">Bing Maps</field> <field name="address_url">https://www.bing.com/maps/default.aspx?where1={ADDRESS}</field> <field name="lat_lon_url">https://www.bing.com/maps/default.aspx?where1={LATITUDE},{LONGITUDE}&lvl=15</field> </record>
<record id="here" model="map.website"> <field name="name">Here Maps</field> <field name="address_url">https://here.com/search/{ADDRESS}</field> <field name="lat_lon_url">https://www.here.com/?map={LATITUDE},{LONGITUDE},15,normal</field> <!-- TODO : for here maps, try to find a lat_lon_url with dot --> <field name="route_lat_lon_url">https://www.here.com/directions/drive/:{START_LATITUDE},{START_LONGITUDE}/:{DEST_LATITUDE},{DEST_LONGITUDE}</field> </record>
<record id="mapquest" model="map.website"> <field name="name">MapQuest</field> <field name="address_url">http://mapq.st/?q={ADDRESS}</field> <field name="lat_lon_url">http://mapq.st/?q={LATITUDE},{LONGITUDE}</field> <field name="route_address_url">http://mapq.st/directions?saddr={START_ADDRESS}&daddr={DEST_ADDRESS}</field> <field name="route_lat_lon_url">http://mapq.st/directions?saddr={START_LATITUDE},{START_LONGITUDE}&daddr={DEST_LATITUDE},{DEST_LONGITUDE}</field> </record>
<record id="yahoo_maps" model="map.website"> <field name="name">Yahoo! Maps</field> <field name="address_url">https://maps.yahoo.com/place/?addr={ADDRESS}</field> <field name="lat_lon_url">https://maps.yahoo.com/place/?lat={LATITUDE}&lon={LONGITUDE}</field> <field name="route_address_url">https://maps.yahoo.com/directions/?o={START_ADDRESS}&d={DEST_ADDRESS}</field> </record>
</data> </openerp>
|