Charles Moga
Charles Moga

Reputation: 21

How to find nearby cities from a given city

HERE has a lot of endpoints but I am struggling to find one that will take city name or coordinates and return nearby cities within radius (limited to cities/towns only).

Upvotes: 1

Views: 2838

Answers (2)

ckHERE
ckHERE

Reputation: 334

Check out the HERE Reverse Geocoder. Use parameter level=city&mode=retrieveAreas

See the full doc at https://developer.here.com/documentation/geocoder/topics/resource-reverse-geocode.html

Upvotes: 3

maguri
maguri

Reputation: 454

You didn't specify the API Product you are using, so I searched a solution for the JS HERE API.


Get Cities

Ref: here

Table 2. Filter by cities around a point location within a radius (all parameters need to be set).

This parameters are mandatory:

{ details: Integer, nearbyMax: Integer, radius: Integer, center: Double }

see more...

Upvotes: 2

Related Questions