MateMonkey / frontend

The AngularJS Frontend for matemonkey.com
https://matemonkey.com
8 stars 3 forks source link

Can't create dealer #14

Closed zealot128 closed 9 years ago

zealot128 commented 9 years ago

Creating a dealer via UI doesn't succeed, but the modal closes anyway.

Here the request from the network tab from chrome:

curl 'http://matemonkey.com/api/v1/dealers' -H 'Origin: http://matemonkey.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en,de-DE;q=0.8,de;q=0.6,en-US;q=0.4' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.124 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Referer: http://matemonkey.com/map/dealer/?@=17,50.058096,8.524033' -H 'Connection: keep-alive' --data-binary '{"name":"REWE","type":"retail","address":{"street":"Am Graf-de-Chardonnet-Platz","number":"15","postal":"65451","city":"Kelsterbach","country":"Deutschland"}}' --compressed

It shows that a "country code" is missing. country should be Germany?

mguentner commented 9 years ago

This is an issue related to Nominatim which is unable to find the address.