You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2015-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3). -->
  4. <odoo>
  5. <!-- Interesting source of information: http://northwestspatial.com/wp/?p=38 -->
  6. <record id="google_maps" model="map.website">
  7. <field name="name">Google Maps</field>
  8. <field name="address_url">https://www.google.com/maps?ie=UTF8&amp;q={ADDRESS}</field>
  9. <field name="lat_lon_url">https://www.google.com/maps?z=15&amp;q={LATITUDE},{LONGITUDE}</field>
  10. <field name="route_address_url">https://www.google.com/maps?saddr={START_ADDRESS}&amp;daddr={DEST_ADDRESS}&amp;directionsmode=driving</field>
  11. <field name="route_lat_lon_url">https://www.google.com/maps?saddr={START_LATITUDE},{START_LONGITUDE}&amp;daddr={DEST_LATITUDE},{DEST_LONGITUDE}&amp;directionsmode=driving</field>
  12. </record>
  13. <record id="openstreetmap" model="map.website">
  14. <field name="name">OpenStreetMap</field>
  15. <field name="address_url">https://nominatim.openstreetmap.org/search?q={ADDRESS}</field>
  16. <field name="lat_lon_url">https://www.openstreetmap.org/?zoom=15&amp;mlat={LATITUDE}&amp;mlon={LONGITUDE}</field>
  17. <field name="route_lat_lon_url">https://www.openstreetmap.org/directions/?engine=orsm_car&amp;route={START_LATITUDE},{START_LONGITUDE};{DEST_LATITUDE},{DEST_LONGITUDE}</field>
  18. </record>
  19. <record id="openstreetmap_fr" model="map.website">
  20. <field name="name">OpenStreetMap FR</field>
  21. <field name="address_url">http://tile.openstreetmap.fr/?q={ADDRESS}</field>
  22. <field name="lat_lon_url">http://tile.openstreetmap.fr/?zoom=15&amp;lat={LATITUDE}&amp;lon={LONGITUDE}</field>
  23. </record>
  24. <record id="bing_maps" model="map.website">
  25. <field name="name">Bing Maps</field>
  26. <field name="address_url">https://www.bing.com/maps/default.aspx?where1={ADDRESS}</field>
  27. <field name="lat_lon_url">https://www.bing.com/maps/default.aspx?where1={LATITUDE},{LONGITUDE}&amp;lvl=15</field>
  28. </record>
  29. <record id="here" model="map.website">
  30. <field name="name">Here Maps</field>
  31. <field name="address_url">https://here.com/search/{ADDRESS}</field>
  32. <field name="lat_lon_url">https://www.here.com/?map={LATITUDE},{LONGITUDE},15,normal</field>
  33. <!-- TODO : for here maps, try to find a lat_lon_url with dot -->
  34. <field name="route_lat_lon_url">https://www.here.com/directions/drive/:{START_LATITUDE},{START_LONGITUDE}/:{DEST_LATITUDE},{DEST_LONGITUDE}</field>
  35. </record>
  36. <record id="mapquest" model="map.website">
  37. <field name="name">MapQuest</field>
  38. <field name="address_url">https://www.mapquest.com/?center={ADDRESS}</field>
  39. <field name="lat_lon_url">https://www.mapquest.com/?center={LATITUDE},{LONGITUDE}</field>
  40. <field name="route_address_url">https://www.mapquest.com/directions?q1={START_ADDRESS}&amp;q2={DEST_ADDRESS}</field>
  41. <field name="route_lat_lon_url">https://www.mapquest.com/directions/from/near-{START_LATITUDE},{START_LONGITUDE}/to/near-{DEST_LATITUDE},{DEST_LONGITUDE}</field>
  42. </record>
  43. <!-- On June 4, 2015, Yahoo! announced that Yahoo! Maps would be shut down
  44. https://www.cnet.com/news/yahoo-to-shut-down-its-maps-site/
  45. -->
  46. </odoo>