TruxDi blog
How TruxDi uses LocationIQ to find places in Trujillo
TruxDi tells people in Trujillo, Peru, which bus to take. To do that it first has to understand where they want to go. That is where LocationIQ comes in.
Tell TruxDi where you are going in Trujillo and it shows which bus to take.
Nobody searches with coordinates
People type the way they talk: a street name, a university, a hospital, “the mall”. To find a route, TruxDi has to turn that text into a point on the map and see which buses pass nearby.
While you type: suggestions
As someone types, TruxDi asks the LocationIQ Autocomplete API which streets and places in the La Libertad region match the text. We merge those answers with our own list of well-known places in Trujillo and show a few options to choose from.
Once one is picked, we have the point we need to search for a route.
When you drop a pin: the address
When someone uses their location or moves the pin, we do the opposite: we send the point to the LocationIQ Reverse Geocoding API and get back the street it is on. People see a street name instead of a pair of numbers.
What we take care of
LocationIQ only receives the typed text or the chosen point. We do not send names or account data.
We also keep each answer for a short while, so the same question is not asked twice.
Why LocationIQ
LocationIQ builds on open data such as OpenStreetMap, the community map we also use to draw the bus routes. With their support we answer thousands of place lookups a day without charging anyone.