cities-scope map feature loads the wrong map for Fort Morgan, Colorado USA (and other places with similar names)

Bug #1062956 reported by Matt Fischer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
One Hundred Scopes
Confirmed
Medium
David Callé

Bug Description

Like a lot of places in the USA there are places in different states with multiple names. I was looking for info on Fort Morgan, a town east of me. The weather is accurate as far as I can tell, but when I click on the map it simply loads "Fort Morgan, USA" which brings up a map of Alabama, not Colorado. Since the weather appears to be showing me Colorado I think the lens has the right info.

Fort Morgan, Colorado - a town on the prarie:
https://maps.google.com/maps?q=Fort+Morgan,+CO&hl=en&ll=40.250184,-103.800201&spn=0.319679,0.576782&sll=40.556658,-105.067652&sspn=0.159114,0.288391&oq=Fort+Morga&t=h&hnear=Fort+Morgan,+Morgan,+Colorado&z=10

Fort Morgan, Alabama - an island near Florida in the Gulf of Mexico:
https://maps.google.com/maps?q=Fort+Morgan,+AL,+United+States&hl=en&sll=40.250258,-103.799951&sspn=0.07992,0.144196&oq=Fort+Morgan,+United&t=h&hq=Fort+Morgan,+AL,+United+States&z=14

Revision history for this message
Matt Fischer (mfisch) wrote :

I note that the weather API is right, but is only showing Fort Morgan, United States of America, the same query that Google Maps is being passed. Maybe there's a way to get the weather API to include the state or zip code?

Here's what the weather API is returning:
{ "data": { "current_condition": [ {"cloudcover": "97", "humidity": "82", "observation_time": "05:44 PM", "precipMM": "1.4", "pressure": "1029", "temp_C": "3", "temp_F": "37", "visibility": "5", "weatherCode": "332", "weatherDesc": [ {"value": "Moderate snow" } ], "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0020_cloudy_with_heavy_snow.png" } ], "winddir16Point": "NE", "winddirDegree": "40", "windspeedKmph": "21", "windspeedMiles": "13" } ], "request": [ {"query": "Fort Morgan, United States Of America", "type": "City" } ], "weather": [ {"date": "2012-10-06", "precipMM": "3.3", "tempMaxC": "4", "tempMaxF": "38", "tempMinC": "-7", "tempMinF": "19", "weatherCode": "332", "weatherDesc": [ {"value": "Moderate snow" } ], "weatherIconUrl": [ {"value": "http:\/\/www.worldweatheronline.com\/images\/wsymbols01_png_64\/wsymbol_0020_cloudy_with_heavy_snow.png" } ], "winddir16Point": "NE", "winddirDegree": "40", "winddirection": "NE", "windspeedKmph": "21", "windspeedMiles": "13" } ] }}

summary: - utilities lens map feature loads the wrong map for Fort Morgan, Colorado
- USA
+ cities-scope map feature loads the wrong map for Fort Morgan, Colorado
+ USA (and other places with similar names)
Revision history for this message
David Callé (davidc3) wrote :

Hi Matt, I've started to rewrite this lens on friday, good timing for the report :)
I think this could be fixed by passing to google maps things in the search string that are not returned by the API.

Search string "fort morgan co"
Weather API returns "Fort Morgan, USA"
Map query : "Fort Morgan, USA co", which should make sense for Google Maps.

Changed in onehundredscopes:
status: New → Confirmed
assignee: nobody → David Callé (davidc3)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.