Browse Source

Add Yahoo! Maps

Enhance bing maps url for lat/lon (now has a pointer)
Update module description
pull/134/head
Alexis de Lattre 9 years ago
parent
commit
dd9cf18c6f
  1. 2
      partner_external_maps/README.rst
  2. 11
      partner_external_maps/map_website_data.xml

2
partner_external_maps/README.rst

@ -12,6 +12,8 @@ This module supports several map websites:
* `OpenStreetMap <https://www.openstreetmap.org/>`
* `Bing Maps <https://www.bing.com/maps/>`
* `Here Maps <https://www.here.com/>`
* `MapQuest <http://www.mapquest.com/>`
* `Yahoo! Maps <https://maps.yahoo.com/>`
If the module *base_geolocalize* from the official addons is installed on the system, it will use the latitude and longitude to localize the partner (instead of the address) if this information is present on the partner.

11
partner_external_maps/map_website_data.xml

@ -8,6 +8,7 @@
<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&amp;q={ADDRESS}</field>
@ -32,7 +33,7 @@
<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?cp={LATITUDE}~{LONGITUDE}&amp;lvl=15</field>
<field name="lat_lon_url">https://www.bing.com/maps/default.aspx?where1={LATITUDE},{LONGITUDE}&amp;lvl=15</field>
</record>
<record id="here" model="map.website">
@ -51,5 +52,13 @@
<field name="route_lat_lon_url">http://mapq.st/directions?saddr={START_LATITUDE},{START_LONGITUDE}&amp;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}&amp;lon={LONGITUDE}</field>
<field name="route_address_url">https://maps.yahoo.com/directions/?o={START_ADDRESS}&amp;d={DEST_ADDRESS}</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save