Git Product home page Git Product logo

Comments (8)

LennyLip avatar LennyLip commented on July 19, 2024

may be models must support xAL format?

from django-address.

furious-luke avatar furious-luke commented on July 19, 2024

That looks interesting, thanks!

from django-address.

LennyLip avatar LennyLip commented on July 19, 2024

I found only java implementation
https://github.com/Geomatys/geotoolkit/tree/master/modules/jaxb-xml-binding/geotk-xml-kml/src/main/java/org/geotoolkit/xal/xml/v20
and
https://github.com/citygml4j/citygml4j/tree/master/src/org/citygml4j/model/xal (looks better)

also xAL (simple version) using in android
http://developer.android.com/reference/android/location/Address.html,
source https://github.com/android/platform_frameworks_base/blob/master/location/java/android/location/Address.java

from django-address.

LennyLip avatar LennyLip commented on July 19, 2024

another approach is create sql schema from xal.xsd (for example, using Altova XMLSpy) and run django inspectdb to create models from DB.

I'm trying to do it now

from django-address.

furious-luke avatar furious-luke commented on July 19, 2024

The latest version of django-address, 0.2 (still on the dev branch) will no longer be troubled by this issue. The code now constructs dynamic hierarchies of address components based on Google's results from geocoding.

from django-address.

jplehmann avatar jplehmann commented on July 19, 2024

We just spent 1 week migrating off the dev branch, only to find that this issue exists on master, and apparently has never been addressed.

Copenhagen, Denmark is an example.

This issue needs to be re-opened. @banagale

from django-address.

banagale avatar banagale commented on July 19, 2024

Sorry to hear that, John, that has to be frustrating.

I've re-opened it. Do you have a test available for this failing behavior by any chance?

from django-address.

jplehmann avatar jplehmann commented on July 19, 2024

Rob thanks for the quick response.

I don't have a unit test, but I have a test case... as mentioned "Copenhagen, Denmark".

We haven't thought about this that much, but our plans at the moment are:

  1. First try to hack the Javascript so that the input always includes at least "UNKNOWN" as a state. This sounds like it might just work.
  2. If that doesn't work and/or later, to create a patch for the lib which supports unknown states by creating an "unknown" entity.

Open to other ideas too.

from django-address.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.