Comments (8)
may be models must support xAL format?
from django-address.
That looks interesting, thanks!
from django-address.
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.
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.
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.
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.
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.
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:
- 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.
- 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)
- Add end-to-end tests
- Use Docker for example site HOT 2
- Admin does not query google HOT 2
- default Autofield and django 3.2
- Update translation to Django 4 HOT 1
- Nonexistent parent node ('address', '004_auto_20220227_1259') HOT 16
- Include serializers for usage inside rest framework HOT 2
- Error installing version 0.2.7 due to incorrect metadata HOT 1
- Python3.9 integration HOT 2
- Address save via admin saves the primary key into raw column, and additionally creates a bare new object HOT 3
- unique=True HOT 2
- Error when using together with Django autocomplete fields in admin HOT 3
- {{ form.media }} seems to render nothing in Django 4 HOT 2
- Address Form field only populates if full address is provided.
- Fill related models upon Address creation.
- Support for model serializer with django-rest-framework HOT 4
- Add documentation to readthedocs
- Prefer django_countries.fields.CountryField instead of implement address.models.Country
- AddressField on admin site
- Cant select address without `address_street_number`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-address.