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.

69 lines
3.2 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
  9. name="address_url"
  10. >https://www.google.com/maps?ie=UTF8&amp;q={ADDRESS}</field>
  11. <field
  12. name="lat_lon_url"
  13. >https://www.google.com/maps?z=15&amp;q={LATITUDE},{LONGITUDE}</field>
  14. <field
  15. name="route_address_url"
  16. >https://www.google.com/maps?saddr={START_ADDRESS}&amp;daddr={DEST_ADDRESS}&amp;directionsmode=driving</field>
  17. <field
  18. name="route_lat_lon_url"
  19. >https://www.google.com/maps?saddr={START_LATITUDE},{START_LONGITUDE}&amp;daddr={DEST_LATITUDE},{DEST_LONGITUDE}&amp;directionsmode=driving</field>
  20. </record>
  21. <record id="openstreetmap" model="map.website">
  22. <field name="name">OpenStreetMap</field>
  23. <field
  24. name="address_url"
  25. >https://nominatim.openstreetmap.org/search?q={ADDRESS}</field>
  26. <field
  27. name="lat_lon_url"
  28. >https://www.openstreetmap.org/?zoom=15&amp;mlat={LATITUDE}&amp;mlon={LONGITUDE}</field>
  29. <field
  30. name="route_lat_lon_url"
  31. >https://www.openstreetmap.org/directions/?engine=orsm_car&amp;route={START_LATITUDE},{START_LONGITUDE};{DEST_LATITUDE},{DEST_LONGITUDE}</field>
  32. </record>
  33. <record id="bing_maps" model="map.website">
  34. <field name="name">Bing Maps</field>
  35. <field
  36. name="address_url"
  37. >https://www.bing.com/maps/default.aspx?where1={ADDRESS}</field>
  38. <field
  39. name="lat_lon_url"
  40. >https://www.bing.com/maps/default.aspx?where1={LATITUDE},{LONGITUDE}&amp;lvl=15</field>
  41. </record>
  42. <record id="here" model="map.website">
  43. <field name="name">Here Maps</field>
  44. <field name="address_url">https://here.com/search/{ADDRESS}</field>
  45. <field
  46. name="lat_lon_url"
  47. >https://www.here.com/?map={LATITUDE},{LONGITUDE},15,normal</field>
  48. <!-- TODO : for here maps, try to find a lat_lon_url with dot -->
  49. <field
  50. name="route_lat_lon_url"
  51. >https://www.here.com/directions/drive/:{START_LATITUDE},{START_LONGITUDE}/:{DEST_LATITUDE},{DEST_LONGITUDE}</field>
  52. </record>
  53. <record id="mapquest" model="map.website">
  54. <field name="name">MapQuest</field>
  55. <field name="address_url">https://www.mapquest.com/?q={ADDRESS}</field>
  56. <field
  57. name="lat_lon_url"
  58. >https://www.mapquest.com/?center={LATITUDE},{LONGITUDE}</field>
  59. <field
  60. name="route_address_url"
  61. >https://www.mapquest.com/directions?q1={START_ADDRESS}&amp;q2={DEST_ADDRESS}</field>
  62. <field
  63. name="route_lat_lon_url"
  64. >https://www.mapquest.com/directions/from/near-{START_LATITUDE},{START_LONGITUDE}/to/near-{DEST_LATITUDE},{DEST_LONGITUDE}</field>
  65. </record>
  66. <!-- On June 4, 2015, Yahoo! announced that Yahoo! Maps would be shut down
  67. https://www.cnet.com/news/yahoo-to-shut-down-its-maps-site/
  68. -->
  69. </odoo>