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.

64 lines
3.4 KiB

9 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright (C) 2015 Akretion (www.akretion.com)
  4. @author: Alexis de Lattre <alexis.delattre@akretion.com>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data>
  9. <!-- Interesting source of information: http://northwestspatial.com/wp/?p=38 -->
  10. <record id="google_maps" model="map.website">
  11. <field name="name">Google Maps</field>
  12. <field name="address_url">https://www.google.com/maps?ie=UTF8&amp;q={ADDRESS}</field>
  13. <field name="lat_lon_url">https://www.google.com/maps?z=15&amp;q={LATITUDE},{LONGITUDE}</field>
  14. <field name="route_address_url">https://www.google.com/maps?saddr={START_ADDRESS}&amp;daddr={DEST_ADDRESS}&amp;directionsmode=driving</field>
  15. <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>
  16. </record>
  17. <record id="openstreetmap" model="map.website">
  18. <field name="name">OpenStreetMap</field>
  19. <field name="address_url">https://nominatim.openstreetmap.org/search?q={ADDRESS}</field>
  20. <field name="lat_lon_url">https://www.openstreetmap.org/?zoom=15&amp;mlat={LATITUDE}&amp;mlon={LONGITUDE}</field>
  21. <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>
  22. </record>
  23. <record id="openstreetmap_fr" model="map.website">
  24. <field name="name">OpenStreetMap FR</field>
  25. <field name="address_url">http://tile.openstreetmap.fr/?q={ADDRESS}</field>
  26. <field name="lat_lon_url">http://tile.openstreetmap.fr/?zoom=15&amp;lat={LATITUDE}&amp;lon={LONGITUDE}</field>
  27. </record>
  28. <record id="bing_maps" model="map.website">
  29. <field name="name">Bing Maps</field>
  30. <field name="address_url">https://www.bing.com/maps/default.aspx?where1={ADDRESS}</field>
  31. <field name="lat_lon_url">https://www.bing.com/maps/default.aspx?where1={LATITUDE},{LONGITUDE}&amp;lvl=15</field>
  32. </record>
  33. <record id="here" model="map.website">
  34. <field name="name">Here Maps</field>
  35. <field name="address_url">https://here.com/search/{ADDRESS}</field>
  36. <field name="lat_lon_url">https://www.here.com/?map={LATITUDE},{LONGITUDE},15,normal</field>
  37. <!-- TODO : for here maps, try to find a lat_lon_url with dot -->
  38. <field name="route_lat_lon_url">https://www.here.com/directions/drive/:{START_LATITUDE},{START_LONGITUDE}/:{DEST_LATITUDE},{DEST_LONGITUDE}</field>
  39. </record>
  40. <record id="mapquest" model="map.website">
  41. <field name="name">MapQuest</field>
  42. <field name="address_url">http://mapq.st/?q={ADDRESS}</field>
  43. <field name="lat_lon_url">http://mapq.st/?q={LATITUDE},{LONGITUDE}</field>
  44. <field name="route_address_url">http://mapq.st/directions?saddr={START_ADDRESS}&amp;daddr={DEST_ADDRESS}</field>
  45. <field name="route_lat_lon_url">http://mapq.st/directions?saddr={START_LATITUDE},{START_LONGITUDE}&amp;daddr={DEST_LATITUDE},{DEST_LONGITUDE}</field>
  46. </record>
  47. <record id="yahoo_maps" model="map.website">
  48. <field name="name">Yahoo! Maps</field>
  49. <field name="address_url">https://maps.yahoo.com/place/?addr={ADDRESS}</field>
  50. <field name="lat_lon_url">https://maps.yahoo.com/place/?lat={LATITUDE}&amp;lon={LONGITUDE}</field>
  51. <field name="route_address_url">https://maps.yahoo.com/directions/?o={START_ADDRESS}&amp;d={DEST_ADDRESS}</field>
  52. </record>
  53. </data>
  54. </openerp>