conveyal / otp.js

OTP Javascript Client & Data Bindings
MIT License
19 stars 20 forks source link

FF geocoder/js failure #72

Closed kpwebb closed 4 years ago

kpwebb commented 8 years ago

Attempting to geocode on recent firefox versions causes a JS error. Shows up in the console as "Error: Invalid LatLng object: (NaN, NaN)". This crashes the JS engine and prevents further use until reloadign the page. Don't see this on other browsers.

Have confirmed with FF 35.0.1 on https://otp.511ny.org/

trevorgerhardt commented 8 years ago

Just tried in FF 33 and it worked for me. Updated and it went straight to version 36 and still worked. Any specific search that caused this problem?

kalon33 commented 8 years ago

I observe the same problem with latest Firefox. That doesn't occur in Chrome.

mattwigway commented 8 years ago

The immediate issue is fixed (it doesn't crash anymore) but it still sends a request when the to field is not filled out, so you get the "no transit trips within 5 miles", which is confusing. When you enter a second address it works now though.