Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Add geolocation to data model.
commit 738452
I don't know for Yahoo and other, but I guess it's the same than for Google. You need a key to use their Map API. For Google this
key is related to the domain used and allow to use the API only on this domain. So we need to store this information somewhere. I
think about general.properties

...

<entity entity-name="GoogleMapApiKey" package-name="org.ofbiz.common.geo" default-resource-name="CommonEntityLabels"
title="Google Map API key">
<field name="UrlId" type="id"></field>
<field name="ApiKey" type="long-varchar"></field><!-- As generated from UrlId at http://code.google.com/intl/fr/apis/maps/signup.htmlImage Removed, note that it works for http://localhostImage Removed !-->
<prim-key field="UrlId"/>
</entity>

...